How can I quickly find the min or max sum of the elements of a row in an array?
For example:
1, 2
3, 4
5, 6
7, 8
The minimum sum would be row 0 (1 + 2), and the maximum sum would be row 3 (7 + 8)
  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.     ]]]
 
     
     
     
    