j
k
j a
j l
On 7/6/2010 9:56 AM, Ken Basye wrote:
Is there a simple way to get a cumsum in reverse order?
......x = np.arange(10) x[::-1].cumsum()[::-1] array([45, 45, 44, 42, 39, 35, 30, 24, 17, 9])
...x = np.arange(10) x[::-1].cumsum()[::-1] array([45, 45, 44, 42, 39, 35, 30, 24, 17, 9])
x = np.arange(10) x[::-1].cumsum()[::-1] array([45, 45, 44, 42, 39, 35, 30, 24, 17, 9])
Is that what you want? Alan Isaac
Back to the thread
Back to the list