[Numpy-discussion] index of minimum of array

Tommy Grav tgrav@mac....
Fri Apr 13 14:12:20 CDT 2007


Hi,

   how do I find the index of the minimum value of an numpy array?

Example
   a = array([1.,2.,0.4,3.])

I want the i=2 since a[i] = 0.4 is the smallest value in a.

Cheers
   Tommy 
  


More information about the Numpy-discussion mailing list