[Numpy-discussion] argsort question

Robert Cimrman cimrman3 at ntc.zcu.cz
Thu Jun 8 10:42:22 CDT 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