[Numpy-discussion] Rolling window (moving average, moving std, and more)

2010-12-31 Thread Erik Rigtorp
Hi, Implementing moving average, moving std and other functions working over rolling windows using python for loops are slow. This is a effective stride trick I learned from Keith Goodman's Bottleneck code but generalized into arrays of any dimension. This trick allows the loop to be performed in

Re: [Numpy-discussion] OS X binaries.

2010-12-31 Thread totonixs...@gmail.com
On Fri, Dec 31, 2010 at 7:44 PM, Gideon wrote: > I noticed that 1.5.1 was released, and sourceforge is suggesting I use > the package numpy-1.5.1-py2.6-python.org-macosx10.3.dmg.  However, I > have an OS X 10.6 machine. > > Can/should I use this binary? > > Should I just compile from source? I su

[Numpy-discussion] OS X binaries.

2010-12-31 Thread Gideon
I noticed that 1.5.1 was released, and sourceforge is suggesting I use the package numpy-1.5.1-py2.6-python.org-macosx10.3.dmg. However, I have an OS X 10.6 machine. Can/should I use this binary? Should I just compile from source? ___ NumPy-Discussion

Re: [Numpy-discussion] Faster NaN functions

2010-12-31 Thread Keith Goodman
On Fri, Dec 31, 2010 at 8:21 AM, Lev Givon wrote: > 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(), nancums

Re: [Numpy-discussion] Faster NaN functions

2010-12-31 Thread Lev Givon
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().

Re: [Numpy-discussion] Simple shared arrays

2010-12-31 Thread Erik Rigtorp
On Fri, Dec 31, 2010 at 02:13, Paul Ivanov wrote: > Erik Rigtorp, on 2010-12-30 21:30,  wrote: >> Hi, >> >> I was trying to parallelize some algorithms and needed a writable >> array shared between processes. It turned out to be quite simple and >> gave a nice speed up almost linear in number of c

[Numpy-discussion] Faster NaN functions

2010-12-31 Thread Erik Rigtorp
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 curr