MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / sort

Function sort

src/api/cpp/sort.cpp:15–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14namespace af {
15array sort(const array &in, const unsigned dim, const bool isAscending) {
16 af_array out = 0;
17 AF_THROW(af_sort(&out, in.get(), dim, isAscending));
18 return array(out);
19}
20
21void sort(array &out, array &indices, const array &in, const unsigned dim,
22 const bool isAscending) {

Callers 1

timeitFunction · 0.70

Calls 5

af_sortFunction · 0.50
arrayClass · 0.50
af_sort_indexFunction · 0.50
af_sort_by_keyFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected