Showing content from https://arrayfire.org/docs/group__sort__func__sort__index.htm below:
ArrayFire: sortIndex
Sort an array over a given dimension and return the original indices. More...
AFAPI void sort (array &out, array &indices, const array &in, const unsigned dim=0, const bool isAscending=true) C++ Interface to sort an array over a given dimension and to return the original indices. More...
AFAPI af_err af_sort_index (af_array *out, af_array *indices, const af_array in, const unsigned dim, const bool isAscending) C Interface to sort an array over a given dimension and to return the original indices. More...
Sort an array over a given dimension and return the original indices.
Output type is u32
.
◆ af_sort_index()
C Interface to sort an array over a given dimension and to return the original indices.
-
Parameters
-
[out] out sorted output [out] indices indices from the input [in] in input array [in] dim dimension along which the sort occurs [in] isAscending specifies the sorting order
-
Returns
-
AF_SUCCESS, if function returns successfully, else an af_err code is given
◆ sort() AFAPI void sort ( array & out, array & indices, const array & in, const unsigned dim = 0
, const bool isAscending = true
)
C++ Interface to sort an array over a given dimension and to return the original indices.
-
Parameters
-
[out] out sorted output [out] indices indices from the input [in] in input array [in] dim dimension along which the sort occurs, 0 denotes the first non-singleton dimension [in] isAscending specifies the sorting order
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4