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

Function topk

src/api/cpp/topk.cpp:17–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16namespace af {
17void topk(array &values, array &indices, const array &in, const int k,
18 const int dim, const topkFunction order) {
19 af_array af_vals = 0;
20 af_array af_idxs = 0;
21
22 AF_THROW(af_topk(&af_vals, &af_idxs, in.get(), k, dim, order));
23
24 values = array(af_vals);
25 indices = array(af_idxs);
26}
27} // namespace af

Callers

nothing calls this directly

Calls 3

af_topkFunction · 0.50
arrayClass · 0.50
getMethod · 0.45

Tested by

no test coverage detected