[SciPy-user] min/max with index

Robert Kern rkern at ucsd.edu
Wed Jul 6 15:55:31 CDT 2005

Ryan Krauss wrote:
> I know there has to be an easy way to do this, but I can't find it in 
> the docs.
> I need to find the eigenvector associated with the smallest eigenvalue 
> returned by linalg.eig.  To do this I need to know the index of the 
> minimum of the eigenvalues.  Is there not a built in function to return 
> the index of the minimum?

argmin(), argmax()

Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter

More information about the SciPy-user mailing list