[Numpy-discussion] find location of maximum values
Fri Jan 6 03:52:41 CST 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).
More information about the NumPy-Discussion