title: find indices of maximum value in matrix (python)
body: <p>I want to find the indices[i,j] of the maximum value in a 2d numpy array:</p>
  
  <pre><code>a = numpy.array([[1,2,3],[4,3,1]])
  </code></pre>
  
  <p>I tried to do it using numpy.argsort() but it returns an array because it can be done along an axis only.
  One solution can be by comparing elements at all indices (along both axes) returned by argsort using for loops, but it seems kind of complicated for this. Maybe there is a simple solution?</p>