David Huard wrote:
> Here is a quick benchmark between numpy's unique, unique1d and sasha's
> unique:
>
> x = rand(100000)*100
> x = x.astype('i')
>
> %timeit unique(x)
> 10 loops, best of 3: 525 ms per loop
>
> %timeit unique_sasha(x)
> 100 loops, best of 3: 10.7 ms per loop
>
> timeit unique1d(x)
> 100 loops, best of 3: 12.6 ms per loop
>
> So I wonder what is the added value of unique?
> Could unique1d simply become unique ?
It looks like unique1d and friends could use same facelifting with new
numpy features like boolean indexing :)
r.
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Numpy-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/numpy-discussion