[Numpy-discussion] Getting the indexes of the myarray.min()

Russell E Owen owen at astro.washington.edu
Wed May 12 12:56:10 EDT 2004


At 9:51 PM +0200 5/12/04, Álvaro Tejero Cantero wrote:
>I am new to numarray. I have been searching the documentation, and see
>no evident vectorial and concise way to get the indexes for the minimum
>of an array times.min().

To find the index of ONE minimum value is easy, 
though it is buried in the nd_image sub-package 
(where many users might miss it):
numarray.nd_image.minimum_position

I do not know a clean way to find all locations 
of the minimum value. I hope somebody else does.

-- Russell




More information about the NumPy-Discussion mailing list