[Numpy-discussion] return index of maximum value in an array easily?
Fri Jan 11 16:00:55 CST 2013
On Thu, Jan 10, 2013 at 9:40 AM, Chao YUE <firstname.lastname@example.org> wrote:
> Dear all,
> Are we going to consider returning the index of maximum value in an array
> without calling np.argmax and np.unravel_index consecutively?
This does seem like a good thing to support somehow. What would a good
interface look like? Something like np.nonzero(a == np.max(a))? Should
we support vectorized operation (e.g. argmax of each 2-d subarray of a
3-d array along some axis)?
More information about the NumPy-Discussion