Function arrayfire::sort_index
[−]
[src]
pub fn sort_index(input: &Array, dim: u32, ascending: bool) -> (Array, Array)
Sort the values in input Arrays
Parameters
input
- Input Arraydim
- Dimension along which to sortascending
- Sorted output will have ascending values ifTrue
and descending order otherwise.
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.