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 wrote: > Hi, > > On Tue, Oct 11, 2011 at 7:32 PM, Benjamin Root wrote: >> On Tue, Oct 11, 2011 at 2:06 PM, Derek Homeier >> wrote: >>> >>> On 11 Oct 2011, at 20:06, Matthew Brett wrote: >>> >>> > Have I missed a fast way of doing nice float to

Re: [Numpy-discussion] Float128 integer comparison

2011-11-01 Thread Matthew Brett
Hi, On Sat, Oct 15, 2011 at 1:34 PM, Derek Homeier wrote: > On 15.10.2011, at 9:42PM, Aronne Merrelli wrote: > >> >> On Sat, Oct 15, 2011 at 1:12 PM, Matthew Brett >> wrote: >> Hi, >> >> Continuing the exploration of float128 - can anyone explain this behavior? >> >> >>> np.float64(922337203685

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 wrote: > On 10/31/11 6:38 PM, Stéfan van der Walt wrote: >> On Mon, Oct 31, 2011 at 6:25 PM, Matthew Brett   >> wrote: >>> Oh, dear, I'm suffering now: > >>> In [12]: res>  2**31-1 >>> Out[12]: array([False], dtype=bool) > >> I'm seeing: > ... > >>

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

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 Brett > 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 should > perf

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 : > 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 enough to caus

Re: [Numpy-discussion] NumPy nogil API

2011-11-01 Thread mark florisson
2011/10/31 Stéfan van der Walt : > On Mon, Oct 31, 2011 at 11:28 AM, Zachary Pincus > 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 as the core is written in