Re: [Numpy-discussion] sum and prod

2012-09-09 Thread nicky van foreest
On 9 September 2012 00:10, Warren Weckesser warren.weckes...@enthought.com wrote: On Sat, Sep 8, 2012 at 4:56 PM, nicky van foreest vanfore...@gmail.com wrote: Hi, I ran the following code: args = np.array([4,8]) print np.sum( (arg 0) for arg in args) print

Re: [Numpy-discussion] sum and prod

2012-09-09 Thread nicky van foreest
Thanks for your hints. NIcky On 9 September 2012 00:30, eat e.antero.ta...@gmail.com wrote: Hi, On Sun, Sep 9, 2012 at 12:56 AM, nicky van foreest vanfore...@gmail.com wrote: Hi, I ran the following code: args = np.array([4,8]) print np.sum( (arg 0) for arg in args)

Re: [Numpy-discussion] ANN: NumPy 1.7.0b1 release

2012-09-09 Thread Frédéric Bastien
All the PyArray_FLOAT*, ... to NPY_FLOAT*. PyObject *var; PyArrayObject * var_arr; var_arr-{dimensions,strides,nd,descr} to PyArray_{DIMS,...}(var_arr), need macro PyArray_ISCONTIGUOUS(var) to PyArray_ISCONTIGUOUS(var_arr) PyArray_{DATA,STRIDES,GETPTR2}(var) to PyArray_{DATA,STRIDES}(var_arr)

Re: [Numpy-discussion] ANN: NumPy 1.7.0b1 release

2012-09-09 Thread Frédéric Bastien
Hi, forget this email, it was sent by error. I'll write the info in a new email in a few minutes. Fred On Sun, Sep 9, 2012 at 1:08 PM, Frédéric Bastien no...@nouiz.org wrote: All the PyArray_FLOAT*, ... to NPY_FLOAT*. PyObject *var; PyArrayObject * var_arr;

Re: [Numpy-discussion] Numpy 1.7b1 API change cause big trouble

2012-09-09 Thread Frédéric Bastien
Hi, On Thu, Sep 6, 2012 at 11:32 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Thu, Sep 6, 2012 at 10:07 AM, Frédéric Bastien no...@nouiz.org wrote: Hi, I reply with more information probably later today or tomorrow, but I think i need to finish everything to give you the exact

Re: [Numpy-discussion] Numpy 1.7b1 API change cause big trouble

2012-09-09 Thread Charles R Harris
On Sun, Sep 9, 2012 at 11:12 AM, Frédéric Bastien no...@nouiz.org wrote: Hi, On Thu, Sep 6, 2012 at 11:32 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Thu, Sep 6, 2012 at 10:07 AM, Frédéric Bastien no...@nouiz.org wrote: Hi, I reply with more information probably

Re: [Numpy-discussion] Numpy 1.7b1 API change cause big trouble

2012-09-09 Thread Charles R Harris
On Sun, Sep 9, 2012 at 1:42 PM, Charles R Harris charlesr.har...@gmail.comwrote: On Sun, Sep 9, 2012 at 11:12 AM, Frédéric Bastien no...@nouiz.org wrote: Hi, On Thu, Sep 6, 2012 at 11:32 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Thu, Sep 6, 2012 at 10:07 AM, Frédéric

Re: [Numpy-discussion] sum and prod

2012-09-09 Thread Han Genuit
Is the difference between prod and sum intentional? I would expect that numpy.prod would also work on a generator, just like numpy.sum. Whatever the correct result may be, I would expect them to have the same behavior with respect to a generator argument. I found out that np.sum() has