[Numpy-discussion] index of minimum of array

Tommy Grav tgrav at mac.com
Fri Apr 13 15:12:20 EDT 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