Sort input arrays get the sorted indices. More...
Functions | |
AFAPI void | sort (array &out, array &indices, const array &in, const unsigned dim=0, const bool isAscending=true) |
C++ Interface for sorting an array and getting original indices. | |
AFAPI af_err | af_sort_index (af_array *out, af_array *indices, const af_array in, const unsigned dim, const bool isAscending) |
C Interface for sorting an array and getting original indices. | |
Sort input arrays get the sorted indices.
Sort a multi dimensional array and return sorted indices. Index array is of type u32.
AFAPI af_err af_sort_index | ( | af_array * | out, |
af_array * | indices, | ||
const af_array | in, | ||
const unsigned | dim, | ||
const bool | isAscending | ||
) |
C Interface for sorting an array and getting original indices.
[out] | out | will contain the sorted output |
[out] | indices | will contain the indices in the original input |
[in] | in | is the input array |
[in] | dim | The dimension along which numerical difference is performed |
[in] | isAscending | specifies the sorting order |
AFAPI void sort | ( | array & | out, |
array & | indices, | ||
const array & | in, | ||
const unsigned | dim = 0 , |
||
const bool | isAscending = true |
||
) |
C++ Interface for sorting an array and getting original indices.
[out] | out | will contain the sorted output |
[out] | indices | will contain the indices in the original input |
[in] | in | is the input array |
[in] | dim | The dimension along which numerical difference is performed |
[in] | isAscending | specifies the sorting order |