[Numpy-discussion] matrix indexing question

Alan G Isaac aisaac@american....
Sun Mar 25 21:30:32 CDT 2007

Oooops, they should match of course. ::
    >>> X[1]
    >>> X[1,:]
    matrix([[3, 4]])

But again the point is:
indexing for submatrices should produce matrices.
Normal Python indexing should access the constituent arrays.

Alan Isaac

More information about the Numpy-discussion mailing list