You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
a.cumsum(dtype=xxx) results bad when len(a) > 10001 (Trac #165) #763
cumsum with any meaningful dtype, on any array larger than 10001 items, has incorrect output. For the 10002-element case, the [1] and [-1] entries are wrong; for a 10003-element array, items (1,2,-2,-1) are bad.
I briefly looked for PyArray_BUFSIZE-related botches, but am confused enough by the code flow to not have gotten very far.
Python 2.4.3 (#1, Apr 3 2006, 18:07:14)
[GCC 4.0.1 (Apple Computer, Inc. build 5247)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Activity
numpy-gitbot commentedon Oct 19, 2012
@teoliphant wrote on 2006-07-06
This was a problem in the BUFFERED section of accumulate. The problem was also present in reduce, and reduceat.
Buffered code can be checked for smaller sizes by setting the buffer size to a smaller multiple of 16.
setbufsize(5*16) # for example.
This was fixed in r2738