Hi Adam
2009/4/11 Adam Oliner :
> I see, thanks. Then the documentation should say that it returns an
> array of the _smallest_ indices of the minimum values along the given
> axis.
Please sign up on http://docs.scipy.org, then I'll give you acess to
the documentation editor.
Regards
Stéfan
Christoper,
I see, thanks. Then the documentation should say that it returns an
array of the _smallest_ indices of the minimum values along the given
axis.
If the minimum value is not unique, as in my examples, is there an
efficient way to get all of these indices? It seems that I can get
Adam Oliner wrote:
> The documentation for numpy.ma.argmin says:
> "Returns array of indices of the maximum values along the given axis."
>
> Aside from probably meaning to say the 'minimum' values,
that's a typo...
> it also doesn't seem to return an array:
it does if you use a higher rank ar
Hi there,
The documentation for numpy.ma.argmin says:
"Returns array of indices of the maximum values along the given axis."
Aside from probably meaning to say the 'minimum' values, it also
doesn't seem to return an array:
>>> a
array([1, 1, 1, 5, 5])
>>> numpy.ma.argmax(a)
3
>>> numpy.ma.a