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 with

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 mwwi...@gmail.com 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

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 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

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 kwgood...@gmail.com wrote: On Tue, Jan 4, 2011 at 8:06 AM, Sebastian Haase seb.ha...@gmail.com wrote: On Mon, Jan 3, 2011 at 5:32 PM, Erik Rigtorp e...@rigtorp.com wrote: On Mon, Jan 3, 2011 at 11:26, Eric Firing efir...@hawaii.edu wrote: Instead

[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,