[Numpy-discussion] summing an array

Chris Withers chris@simplistix.co...
Fri Aug 19 09:49:33 CDT 2011


On 18/08/2011 07:58, Bob Dowling wrote:
>
>   >>>  numpy.add.accumulate(a)
> array([ 0,  1,  3,  6, 10])
>
>   >>>  numpy.add.accumulate(a, out=a)
> array([ 0,  1,  3,  6, 10])

What's the difference between numpy.cumsum and numpy.add.accumulate?

Where can I find the reference docs for these?

cheers,

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
             - http://www.simplistix.co.uk


More information about the NumPy-Discussion mailing list