[SciPy-dev] ufunc.accumulate bug?

Charles R Harris charlesr.harris@gmail....
Sun Jul 19 16:49:34 CDT 2009


On Sun, Jul 19, 2009 at 3:28 PM, David Goldsmith <d_l_goldsmith@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)?
>

Definitely a bug, probably a wrong type somewhere. Open a ticket. Oh, and
what platform is this on?

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-dev/attachments/20090719/2e0bdaff/attachment.html 


More information about the Scipy-dev mailing list