title: How do I sum over a dimension in array while dropping the traversed dimension?
body: <p>I want to do a sum over one dimension in an array. That's easy. For an array 9x100x100:</p>
  
  <pre><code>sum(a,1)
  </code></pre>
  
  <p>However what is then left is an array with dimension 1x100x100. And now I want to get rid of the first dimension, since there is only one element left. So my solution is just:</p>
  
  <pre><code>reshape(summed_array, 100,100)
  </code></pre>
  
  <p>In order to get the 100x100 array, which I wanted.
  However this does not feel very clean. Is there a better way of achieving this?</p>