[Numpy-discussion] find location of maximum values
Vincent Schut
schut at sarvision.nl
Fri Jan 6 04:52:41 EST 2012
On Wed, 04 Jan 2012 12:29:36 +0100, Derek Homeier wrote:
> On 04.01.2012, at 5:10AM, questions anon wrote:
>
>> Thanks for your responses but I am still having difficuties with this
>> problem. Using argmax gives me one very large value and I am not sure
>> what it is.
it is the index in the flattened array. To translate this into a
multidimensional index, use numpy.unravel_index(i, original_shape).
Cheers,
Vincent.
More information about the NumPy-Discussion
mailing list