[Numpy-discussion] Faster NaN functions

Lev Givon lev@columbia....
Fri Dec 31 10:21:14 CST 2010


Received from Erik Rigtorp on Fri, Dec 31, 2010 at 08:52:53AM EST:
> Hi,
> 
> I just send a pull request for some faster NaN functions,
> https://github.com/rigtorp/numpy.
> 
> I implemented the following generalized ufuncs: nansum(), nancumsum(),
> nanmean(), nanstd() and for fun mean() and std(). It turns out that
> the generalized ufunc mean() and std() is faster than the current
> numpy functions. I'm also going to add nanprod(), nancumprod(),
> nanmax(), nanmin(), nanargmax(), nanargmin().
> 
> The current implementation is not optimized in any way and there are
> probably some speedups possible.
> 
> I hope we can get this into numpy 2.0, me and people around me seems
> to have a need for these functions.
> 
> Erik
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
> 

How does this compare to Bottleneck?

http://pypi.python.org/pypi/Bottleneck/

							L.G.


More information about the NumPy-Discussion mailing list