[SciPy-user] incremental sum

Marek Wojciechowski mwojc@p.lodz...
Wed Feb 25 06:04:51 CST 2009


Hi!

Is there in numpy/scipy a function/method which does efficiently:

for i in xrange(1, len(arr)):
   arr[i] += arr[i-1]

Greetings,
-- 
Marek Wojciechowski



More information about the SciPy-user mailing list