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