ufunc.accumulate bug?
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)? DG
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
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)?
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
participants (2)
-
Charles R Harris
-
David Goldsmith