Return indices of the maximum values along the given axis of a.
Parameters: | axis : int, optional
out : ndarray, optional
|
---|---|
Returns: | index_array : ndarray
|
Examples
>>> a = np.arange(6).reshape(2,3)
>>> a.argmax()
5
>>> a.argmax(0)
array([1, 1, 1])
>>> a.argmax(1)
array([2, 2])