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

Function minByKey

src/api/cpp/reduce.cpp:85–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void minByKey(array &keys_out, array &vals_out, const array &keys,
86 const array &vals, const int dim) {
87 af_array okeys, ovals;
88 AF_THROW(af_min_by_key(&okeys, &ovals, keys.get(), vals.get(),
89 getFNSD(dim, vals.dims())));
90 keys_out = array(okeys);
91 vals_out = array(ovals);
92}
93
94array max(const array &in, const int dim) {
95 af_array out = 0;

Callers 2

TYPED_TESTFunction · 0.85
TESTFunction · 0.85

Calls 5

af_min_by_keyFunction · 0.85
getFNSDFunction · 0.85
arrayClass · 0.50
getMethod · 0.45
dimsMethod · 0.45

Tested by

no test coverage detected