[Numpy-discussion] argsort question

Robert Cimrman cimrman3 at ntc.zcu.cz
Thu Jun 8 11:42:22 EDT 2006


Charles R Harris wrote:
> Robert,
> 
> Modifying your example gives
> 
> In [3]: import numpy as nm
> 
> In [4]: a = nm.zeros( 10000 )
> In [5]: b = nm.arange( 10000 )
> In [6]: nm.alltrue( a.argsort(kind="merge" ) == b )
> Out[6]: True

Thanks for all the answers!
r.




More information about the NumPy-Discussion mailing list