[Numpy-discussion] histogram2d and decreasing bin edges

2011-01-11 Thread Matthias Frank
Hi all, I've noticed a change in numpy.histogram2d between (possibly very much) older versions and the current one: The function can no longer handle the situation where bin edges decrease instead of increasing monotonically. The reason for this seems to be the handling of outliers histogramdd, s

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

2011-01-11 Thread Keith Goodman
On Tue, Jan 4, 2011 at 8:14 AM, Keith Goodman wrote: > On Tue, Jan 4, 2011 at 8:06 AM, Sebastian Haase wrote: >> On Mon, Jan 3, 2011 at 5:32 PM, Erik Rigtorp wrote: >>> On Mon, Jan 3, 2011 at 11:26, Eric Firing wrote: Instead of calculating statistics independently each time the window is

Re: [Numpy-discussion] Drawing circles in a numpy array

2011-01-11 Thread totonixs...@gmail.com
On Mon, Jan 10, 2011 at 11:53 AM, totonixs...@gmail.com wrote: > Hi all, > > I have this problem: Given some point draw a circle centered in this > point with radius r. I'm doing that using numpy this way (Snippet code > from here [1]): > # Create the initial black and white image import

Re: [Numpy-discussion] numexpr with the new iterator

2011-01-11 Thread Francesc Alted
A Tuesday 11 January 2011 06:45:28 Mark Wiebe escrigué: > On Mon, Jan 10, 2011 at 11:35 AM, Mark Wiebe wrote: > > I'm a bit curious why the jump from 1 to 2 threads is scaling so > > poorly. > > > > Your timings have improvement factors of 1.85, 1.68, 1.64, and > > 1.79. Since > > > > the co

Re: [Numpy-discussion] numexpr with the new iterator

2011-01-11 Thread Francesc Alted
A Monday 10 January 2011 19:29:33 Mark Wiebe escrigué: > > so, the new code is just < 5% slower. I suppose that removing the > > NPY_ITER_ALIGNED flag would give us a bit more performance, but > > that's great as it is now. How did you do that? Your new_iter > > branch in NumPy already deals wit