[SciPy-user] Index of a value

Marek Wojciechowski mwojc@p.lodz...
Mon Mar 12 09:09:25 CDT 2007


Hallo!
Is there any shorthand for:

maxvalue = A.max()
maxindex = A.tolist().index(maxvalue)

where A is a 1-dimensional numpy array.

Thanks
Marek


More information about the SciPy-user mailing list