[Numpy-discussion] Upgrade to 1.6.x: frompyfunc() ufunc casting issue

Stéfan van der Walt stefan@sun.ac...
Mon Sep 19 18:27:12 CDT 2011


On Mon, Sep 19, 2011 at 4:18 PM, Aditya Sethi <ady.sethi@gmail.com> wrote:
> But uadd.accumulate(..) or uadd.reduce(..) fail with error:
>  ValueError: could not find a matching type for add (vectorized).accumulate
> ( or (vectorized).reduce )
> Apologies, I should have been more clear before.

In the development version:

In [4]: uadd.accumulate([1,2,3])
Out[4]: array([1, 3, 6], dtype=object)

In [5]: uadd.reduce([1,2,3])
Out[5]: 6

Regards
Stéfan


More information about the NumPy-Discussion mailing list