cupy.nanargmin¶
-
cupy.
nanargmin
(a, axis=None, dtype=None, out=None, keepdims=False)[source]¶ Return the indices of the minimum values in the specified axis ignoring NaNs. For all-NaN slice
-1
is returned. Subclass cannot be passed yet, subok=True still unsupported- Parameters
a (cupy.ndarray) – Array to take nanargmin.
axis (int) – Along which axis to find the minimum.
a
is flattened by default.
- Returns
- The indices of the minimum of
a
along an axis ignoring NaN values.
- The indices of the minimum of
- Return type
Note
For performance reasons,
cupy.nanargmin
returnsout of range values
for all-NaN slice whereasnumpy.nanargmin
raisesValueError
See also