[Numpy-discussion] Release of NumPy

Alan G Isaac aisaac at american.edu
Wed Apr 16 10:06:03 EDT 2008


On Wed, 16 Apr 2008, Stéfan van der Walt apparently wrote:
> Your proposal suggests that a Matrix be a container of arrays, but it 
> does not address the slicing of column vectors, i.e. 

> x[0] 
> x[0,:] 
> x[:,0] 

The only thing that changes is the handling of scalar 
indices (and thus of iteration).  The other two cases
remain unchanged.

This should be clear from the proposal:
http://www.scipy.org/MatrixIndexing

The rule is:
to get a submatrix,
use multiple indices.
As Anne has argued,
this is natural.

Cheers,
Alan Isaac






More information about the NumPy-Discussion mailing list