Skip to main content

argsort

Function argsort 

Source
pub fn argsort<T, D>(
    a: &Array<T, D>,
    axis: Option<usize>,
) -> FerrayResult<Array<u64, D>>
where T: Element + PartialOrd + Copy, D: Dimension,
Expand description

Return the indices that would sort an array along the given axis.

Returns u64 indices.

Equivalent to numpy.argsort.