[SciPy-dev] ufunc.accumulate bug?

Charles R Harris charlesr.harris at gmail.com
Sun Jul 19 17:55:36 EDT 2009


On Sun, Jul 19, 2009 at 3:28 PM, David Goldsmith <d_l_goldsmith at yahoo.com>wrote:

>
> Hi!  Is this a bug:
>
> >>> np.multiply.accumulate([2, 3, 5], dtype='f')
> array([  2.,   6.,  30.], dtype=float32)
>
> >>> np.multiply.accumulate([2, 3, 5], dtype='g')
> array([0.0, -2, -3.1050362e+231], dtype=float96)
>
> >>> np.multiply.accumulate([2, 3, 5], dtype='F')
> array([  2.+0.j,   6.+0.j,  30.+0.j], dtype=complex64)
>
> >>> np.multiply.accumulate([2, 3, 5], dtype='G')
> array([0.0+0.0j, -2+0.0j, -3.1050362e+231+0.0j], dtype=complex192)
>
> If not, why not (i.e., what am I missing)?
>

On the other hand, this works for me. What numpy version do you have? There
was a bug like this that got fixed in 1.2.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20090719/8e3c9a82/attachment.html>


More information about the SciPy-Dev mailing list