[][src]Function arrayfire::sort_index

pub fn sort_index<T>(
    input: &Array<T>,
    dim: u32,
    ascending: bool
) -> (Array<T>, Array<u32>) where
    T: HasAfEnum + RealNumber

Sort the values in input Arrays

Parameters

Return Values

A tuple of Arrays.

The first Array contains the keys based on sorted values.

The second Array contains the original indices of the sorted values.