mlx_rs::ops::indexing

Function argmin

Source
pub fn argmin(
    a: impl AsRef<Array>,
    axis: i32,
    keep_dims: impl Into<Option<bool>>,
) -> Result<Array>
Expand description

Indices of the minimum values along the axis.

See argmin_all for the flattened array.

ยงParams

  • a: The input array.
  • axis: Axis to reduce over.
  • keep_dims: Keep reduced axes as singleton dimensions, defaults to False.