title: numpy.argmin is giving me the maximum element index
body: <p>I'm having some trouble with numpy and argmin. It seems as if argmin is returning the index of the maximum element. This sample code might clarify the case:</p>
  
  <pre><code>for i in range(20):                
              indmin = np.argmin(M[n-1, 1:-1])
              print("M[n-1, indmin] = ", M[n-1, indmin])
  
              print("indmin = ", indmin)
  
              M[n-1, indmin] = inf
  </code></pre>
  
  <p>The output of this piece of code is:</p>
  
  <pre><code>M[n-1, indmin] =  5.806069439930625
  indmin =  1150
  M[n-1, indmin] =  100000000.0
  indmin =  1150
  M[n-1, indmin] =  100000000.0
  indmin =  1150
  M[n-1, indmin] =  100000000.0
  indmin =  1150
  ...
  </code></pre>
  
  <p>M[n-1,-1:1] contains values ranging approximately from 0 to 15. What's happening here?</p>
  
  <p>Edit:
  n = 813;
  inf = 100000000</p>
  
  <p>Link to M dump:
  [<a href="http://www.mediafire.com/file/wjbk11tiafjo3do/probarray/file][1]" rel="nofollow noreferrer">http://www.mediafire.com/file/wjbk11tiafjo3do/probarray/file][1]</a></p>