dpnp.argmin
- dpnp.argmin(x1, axis=None, out=None)[source]
Returns the indices of the minimum values along an axis.
For full documentation refer to
numpy.argmin
.Limitations
Input array is supported as
dpnp.ndarray
. Otherwise the function will be executed sequentially on CPU. Parameteraxis
is supported only with default valueNone
. Parameterout
is supported only with default valueNone
. Input array data types are limited by supported DPNP Data types.See also
dpnp.argmax
Returns the indices of the maximum values along an axis.
dpnp.amin
The minimum value along a given axis.
dpnp.unravel_index
Convert a flat index into an index tuple.
dpnp.take_along_axis
Apply
np.expand_dims(index_array, axis)
from argmin to an array as if by calling min.
Notes
In case of multiple occurrences of the minimum values, the indices corresponding to the first occurrence are returned.
Examples
>>> import dpnp as np >>> a = np.arange(6).reshape((2, 3)) + 10 >>> a.shape (2, 3) >>> [i for i in a] [10, 11, 12, 13, 14, 15] >>> np.argmin(a) 0