>> 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
On Sun, Sep 9, 2012 at 1:42 PM, Charles R Harris
wrote:
>
>
> On Sun, Sep 9, 2012 at 11:12 AM, Frédéric Bastien wrote:
>
>> Hi,
>>
>> On Thu, Sep 6, 2012 at 11:32 AM, Charles R Harris
>> wrote:
>> >
>> >
>> > On Thu, Sep 6, 2012 at 10:07 AM, Frédéric Bastien
>> wrote:
>> >>
>> >> Hi,
>> >>
>> >
On Sun, Sep 9, 2012 at 11:12 AM, Frédéric Bastien wrote:
> Hi,
>
> On Thu, Sep 6, 2012 at 11:32 AM, Charles R Harris
> wrote:
> >
> >
> > On Thu, Sep 6, 2012 at 10:07 AM, Frédéric Bastien
> wrote:
> >>
> >> Hi,
> >>
> >> I reply with more information probably later today or tomorrow, but I
> >>
Hi,
On Thu, Sep 6, 2012 at 11:32 AM, Charles R Harris
wrote:
>
>
> On Thu, Sep 6, 2012 at 10:07 AM, Frédéric Bastien 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 information.
>>
>> Part of
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 wrote:
> All the PyArray_FLOAT*, ... to NPY_FLOAT*.
>
> PyObject *var;
> PyArrayObject * var_arr;
> var_arr->{dimensions,strides,nd,descr} to P
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)
Thanks for your hints.
NIcky
On 9 September 2012 00:30, eat wrote:
> Hi,
>
> On Sun, Sep 9, 2012 at 12:56 AM, nicky van foreest
> wrote:
>>
>> Hi,
>>
>> I ran the following code:
>>
>> args = np.array([4,8])
>> print np.sum( (arg > 0) for arg in args)
>> print np.sum([(
On 9 September 2012 00:10, Warren Weckesser
wrote:
>
>
> On Sat, Sep 8, 2012 at 4:56 PM, nicky van foreest
> wrote:
>>
>> Hi,
>>
>> I ran the following code:
>>
>> args = np.array([4,8])
>> print np.sum( (arg > 0) for arg in args)
>> print np.sum([(arg > 0) for arg in args