title: How to get the highest element in absolute value in a numpy matrix?
body: <p>Here is what I am currently doing, it works but it's a little cumbersome:</p>
  
  <pre><code>x = np.matrix([[1, 1], [2, -3]])
  xmax = x.flat[abs(x).argmax()]
  </code></pre>