[Numpy-discussion] nonzero() behaviour has changed

Francesc Altet faltet at carabos.com
Wed May 17 01:38:02 EDT 2006


A Dimecres 17 Maig 2006 03:17, Simon Burton va escriure:
> 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]]

+1 That could be quite useful.

-- 
>0,0<   Francesc Altet     http://www.carabos.com/
V   V   Cárabos Coop. V.   Enjoy Data
 "-"





More information about the NumPy-Discussion mailing list