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

Stéfan van der Walt stefan at sun.ac.za
Mon Sep 19 19:27:12 EDT 2011

On Mon, Sep 19, 2011 at 4:18 PM, Aditya Sethi <ady.sethi at 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


More information about the NumPy-Discussion mailing list