Showing content from https://arrayfire.org/docs/group__sort__func__sort__keys.htm below:
ArrayFire: sortByKey
Sort an array over a given dimension, according to an array of keys. More...
AFAPI void sort (array &out_keys, array &out_values, const array &keys, const array &values, const unsigned dim=0, const bool isAscending=true) C++ Interface to sort an array over a given dimension, according to an array of keys. More...
AFAPI af_err af_sort_by_key (af_array *out_keys, af_array *out_values, const af_array keys, const af_array values, const unsigned dim, const bool isAscending) C Interface to sort an array over a given dimension, according to an array of keys. More...
Sort an array over a given dimension, according to an array of keys.
◆ af_sort_by_key()
C Interface to sort an array over a given dimension, according to an array of keys.
-
Parameters
-
[out] out_keys sorted keys [out] out_values sorted output [in] keys keys array [in] values 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_keys, array & out_values, const array & keys, const array & values, const unsigned dim = 0
, const bool isAscending = true
)
C++ Interface to sort an array over a given dimension, according to an array of keys.
-
Parameters
-
[out] out_keys sorted keys [out] out_values sorted output [in] keys keys array [in] values 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