[SciPy-user] Shape Problem

Sam frizou excellent.frizou at gmail.com
Wed Oct 18 05:11:39 EDT 2006


Hi,

I use a matrix M of shape (20,25).

If I do N=M[18:,18:] I correctly obtain the submatrix of M of shape (2,7).

Now, if I do N=M[19:,19:], I expect to have the submatrix of M of
shape (1,6) but the shape of N is (6,1).
Is there any way to obtain the correct shape in any case ?

Thank you very much for your help.

Sam



More information about the SciPy-User mailing list