Returns the index of the minimum value along an axis. Ties are broken by returning the smallest index.
Arguments
- x
(
arrayish)
Input array.- axis
(
integer(1)|NULL)
Axis along which to find the index. Negative values count from the end, i.e.-1refers to the last axis. IfNULL(default), uses the last axis.- drop
(
logical(1))
IfTRUE(default) the reduced axis is removed; ifFALSEit is kept with size 1.- nan_rm
(
logical(1))
How to handleNaNvalues in floating-point inputs. IfFALSE(default),NaNpropagates. IfTRUE,NaNvalues are skipped.
Value
arrayish of dtype i32
Same shape as x with axis removed (or set to 1 if drop = FALSE).
NaN handling
With nan_rm = FALSE (default), if any entry along the reduced axis is
NaN, the returned index points at the first such NaN. With
nan_rm = TRUE, NaN entries are skipped.