[NumPy-Tickets] [NumPy] #1733: add.accumulate on an array of shape (0, ) causes divide-by-zero
NumPy Trac
numpy-tickets@scipy....
Wed Feb 2 13:09:51 CST 2011
#1733: add.accumulate on an array of shape (0,) causes divide-by-zero
--------------------+-------------------------------------------------------
Reporter: mdroe | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 2.0.0
Component: Other | Version: devel
Keywords: |
--------------------+-------------------------------------------------------
This works in 1.5.1, fails in git MASTER (a7ffc7a)
{{{
import numpy as np
x = np.array([[42, 0]], dtype=np.uint32)
np.add.accumulate(x[:-1,0])
}}}
(This is a simple example of something one of pyfits' unit tests does).
Blame suggests this is possibly related to fadddc7.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1733>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list