[Tutor] extract a submatrix
bala.biophysics at gmail.com
Mon Jul 12 15:38:36 CEST 2010
Thank you so much, the simple slicing operation solved my problem. Thank you
for the links, i am just going through the same.
I wanted was to extract a matrix of dimension 330,330 from a matrix of
dimension 550,550. Sorry if my previous post was not clear. I am able to do
it by slicing as suggested by Eike.
On Mon, Jul 12, 2010 at 1:17 PM, Dave Angel <davea at ieee.org> wrote:
> Bala subramanian wrote:
>> Excuse me if this question is not appropriate for this forum. I have a
>> matrix of size 550,550. I want to extract only part of this matrix say
>> 330 elements, i dnt need the last 220 elements in the matrix. is there any
>> function in numpy that can do this kind of extraction. I am quite new to
>> numpy. How can do the same ?
>> Thank you,
> I don't know numpy, and it probably would be better to use that forum. But
> there are several people here who do, and one of them will probably help.
> However, I would point out that if you fetch the first 220 elements of a
> 550x550 matrix, you'll have 302170 elements left.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor