[Numpy-discussion] nonzero() behaviour has changed

Simon Burton simon at arrowtheory.com
Tue May 16 18:18:05 EDT 2006


On Tue, 16 May 2006 15:15:23 -0400
Alan G Isaac <aisaac at american.edu> wrote:

> 2. How are people using this?  I trust that the numarray
>    behavior was well considered, but I would have expected
>    coordinates to be grouped rather than spread across
>    the arrays in the tuple.

Yes, this strikes me as bizarre.
How about we make a new function, eg. argwhere, that
returns an array of indices ?

argwhere( array( [[0,1],[0,1]] ) ) -> [[0,1],[1,1]]


Simon.


-- 
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com 




More information about the NumPy-Discussion mailing list