Can anyone recommend a way to do a reverse cumulative sum on a numpy array?
Where \'reverse cumulative sum\' is defined as below (I welcome any corrections on the na
This does it:
np.cumsum(x[::-1])[::-1]