Re: [Numpy-discussion] NumPy nogil API

2011-11-01 Thread mark florisson
2011/10/31 Stéfan van der Walt ste...@sun.ac.za: On Mon, Oct 31, 2011 at 11:28 AM, Zachary Pincus zachary.pin...@yale.edu wrote: As an example, it'd be nice to have scipy.ndimage available without the GIL: http://docs.scipy.org/doc/scipy/reference/ndimage.html Now, this *can* easily be done

Re: [Numpy-discussion] Reason behind C_ABI_VERSION so high

2011-11-01 Thread Sandro Tosi
Hi Stéfan, thanks for your reply. 2011/11/1 Stéfan van der Walt ste...@sun.ac.za:  But nowadays the ABI number is simply bumped by one after every change, so for a good couple of million releases you should be safe ignoring the 1 perfect, that's good for us (but is the value really large

Re: [Numpy-discussion] float64 / int comparison different from float / int comparison

2011-11-01 Thread Chris.Barker
On 10/31/11 6:38 PM, Stéfan van der Walt wrote: On Mon, Oct 31, 2011 at 6:25 PM, Matthew Brettmatthew.br...@gmail.com wrote: Oh, dear, I'm suffering now: In [12]: res 2**31-1 Out[12]: array([False], dtype=bool) I'm seeing: ... Your result seems very strange, because the numpy scalars

[Numpy-discussion] einsum performance with many operands

2011-11-01 Thread Eugenio Piasini
Hi, I was playing around with einsum (which is really cool, by the way!), and I noticed something strange (or unexpected at least) performance-wise. Here is an example: Let x and y be two NxM arrays, and W be a NxN array. I want to compute f = x^{ik} W_i^j y_{jk} (I hope the notation is

Re: [Numpy-discussion] float64 / int comparison different from float / int comparison

2011-11-01 Thread Matthew Brett
Hi, On Tue, Nov 1, 2011 at 8:39 AM, Chris.Barker chris.bar...@noaa.gov wrote: On 10/31/11 6:38 PM, Stéfan van der Walt wrote: On Mon, Oct 31, 2011 at 6:25 PM, Matthew Brettmatthew.br...@gmail.com   wrote: Oh, dear, I'm suffering now: In [12]: res  2**31-1 Out[12]: array([False],

Re: [Numpy-discussion] Float128 integer comparison

2011-11-01 Thread Matthew Brett
Hi, On Sat, Oct 15, 2011 at 1:34 PM, Derek Homeier de...@astro.physik.uni-goettingen.de wrote: On 15.10.2011, at 9:42PM, Aronne Merrelli wrote: On Sat, Oct 15, 2011 at 1:12 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, Continuing the exploration of float128 - can anyone explain

Re: [Numpy-discussion] Nice float - integer conversion?

2011-11-01 Thread Matthew Brett
Hi, On Sat, Oct 15, 2011 at 12:20 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Tue, Oct 11, 2011 at 7:32 PM, Benjamin Root ben.r...@ou.edu wrote: On Tue, Oct 11, 2011 at 2:06 PM, Derek Homeier de...@astro.physik.uni-goettingen.de wrote: On 11 Oct 2011, at 20:06, Matthew Brett