[Numpy-discussion] matrix indexing question

Alan Isaac aisaac at american.edu
Wed Mar 28 17:47:15 EDT 2007


On Tue, 27 Mar 2007, Zachary Pincus wrote: 
> M[i], which equals M[i,:] 

Of course this equality must break.
That was stated at the outset.

As I said before, this may be impossible
or undesirable.  But, as I said before,
it seems prima facie natural for
M[i] to be ordinary Python indexing
while M[i,:] is numpy indexing,
each with its own natural interpretation.

In any case, you may be spending too much
energy on this.  I am not a developer, and
no developer has expressed a desire to make
such a change.  The current behavior is
currently safe (if odd).

Cheers,
Alan Isaac








More information about the NumPy-Discussion mailing list