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

Function maxByKey

src/api/cpp/reduce.cpp:100–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void maxByKey(array &keys_out, array &vals_out, const array &keys,
101 const array &vals, const int dim) {
102 af_array okeys, ovals;
103 AF_THROW(af_max_by_key(&okeys, &ovals, keys.get(), vals.get(),
104 getFNSD(dim, vals.dims())));
105 keys_out = array(okeys);
106 vals_out = array(ovals);
107}
108
109void max(array &val, array &idx, const array &in, const array &ragged_len,
110 const int dim) {

Callers 2

TYPED_TESTFunction · 0.85
TESTFunction · 0.85

Calls 5

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

Tested by

no test coverage detected