bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / ma / core / argmax
function
numpy.ma.core:argmax
source: build-install/usr/lib/python3.14/site-packages/numpy/ma/core.py :7063
Summary
Returns array of indices of the maximum values along the given axis. Masked values are treated as if they had the value fill_value.
Parameters
axis: {None, integer}If None, the index is into the flattened array, otherwise along the specified axis
fill_value: scalar or None, optionalValue used to fill in the masked values. If None, the output of maximum_fill_value(self._data) is used instead.
out: {None, array}, optionalArray into which the result can be placed. Its type is preserved and it must be of the right shape to hold the output.
Returns
index_array: {integer_array}
Examples
import numpy as np a = np.arange(6).reshape(2,3) a.argmax() a.argmax(0) a.argmax(1)
Aliases
-
numpy.ma.argmax