title: How to find maximum value in whole 2D array with indices
body: <p>I want to find the maximum value in a 2D array and the indices of the maximum value in Python using NumPy. I used</p>
  <pre><code>np.amax(array)
  </code></pre>
  <p>for searching for the maximum value, but I don't know how to get its indices. I could find it by using ´for` loops, but maybe there is a better way.</p>