title: Perform a reverse cumulative sum on a numpy array
body: <p>Can anyone recommend a way to do a reverse cumulative sum on a numpy array?</p>
  
  <p>Where 'reverse cumulative sum' is defined as below (I welcome any corrections on the name for this procedure):</p>
  
  <p>if</p>
  
  <pre><code>x = np.array([0,1,2,3,4])
  </code></pre>
  
  <p>then</p>
  
  <pre><code>np.cumsum(x)
  </code></pre>
  
  <p>gives</p>
  
  <pre><code>array([0,1,3,6,10])
  </code></pre>
  
  <p>However, I would like to get</p>
  
  <pre><code>array([10,10,9,7,4]
  </code></pre>
  
  <p>Can anyone suggest a way to do this?</p>