[Numpy-discussion] Selecting columns of a matrix (original) (raw)

Alan G Isaac aisaac at american.edu
Wed Jun 21 05:21:38 EDT 2006


On Wed, 21 Jun 2006, Bill Baxter apparently wrote:

ew to numpy.nonzero

I agree that having the method and function behave so differently is awkward; this was discussed before on this list.

It does allow Simon's nicer solution, however.

I'm not sure why bool arrays cannot be used as indices. The "natural" solution to the original problem seemed to be: M[:,V>0] but this is not allowed.

Cheers, Alan Isaac



More information about the NumPy-Discussion mailing list