[SciPy-user] Shape Problem

Sam frizou excellent.frizou at gmail.com
Wed Oct 18 04:11:39 CDT 2006


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.


More information about the SciPy-user mailing list