mlx_rs::ops::indexing

Function argsort_device

Source
pub fn argsort_device(
    a: impl AsRef<Array>,
    axis: i32,
    stream: impl AsRef<Stream>,
) -> Result<Array>
Expand description

Returns the indices that sort the array.

See argsort_all for the flattened array.

ยงParams

  • a: The input array.
  • axis: Axis to sort over.