title: Finding the min or max sum of a row in an array
body: <p>How can I quickly find the min or max sum of the elements of a row in an array?</p>
  
  <p>For example:</p>
  
  <pre><code>1, 2
  3, 4
  5, 6
  7, 8
  </code></pre>
  
  <p>The minimum sum would be row 0 (1 + 2), and the maximum sum would be row 3 (7 + 8)</p>
  
  <pre><code>  print mat.shape
    (8, 1, 2)  
    print mat
   [[[-995.40045 -409.15112]]
  
   [[-989.1511  3365.3267 ]]
  
   [[-989.1511  3365.3267 ]]
  
   [[1674.5447  3035.3523 ]]
  
   [[   0.         0.     ]]
  
   [[   0.      3199.     ]]
  
   [[   0.      3199.     ]]
  
   [[2367.      3199.     ]]]
  </code></pre>