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

Function sumByKey

src/api/cpp/reduce.cpp:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29void sumByKey(array &keys_out, array &vals_out, const array &keys,
30 const array &vals, const int dim) {
31 af_array okeys, ovals;
32 AF_THROW(af_sum_by_key(&okeys, &ovals, keys.get(), vals.get(),
33 getFNSD(dim, vals.dims())));
34 keys_out = array(okeys);
35 vals_out = array(ovals);
36}
37
38void sumByKey(array &keys_out, array &vals_out, const array &keys,
39 const array &vals, const int dim, const double nanval) {

Callers 3

TEST_PFunction · 0.85
TYPED_TESTFunction · 0.85
TESTFunction · 0.85

Calls 6

af_sum_by_keyFunction · 0.85
getFNSDFunction · 0.85
af_sum_by_key_nanFunction · 0.85
arrayClass · 0.50
getMethod · 0.45
dimsMethod · 0.45

Tested by

no test coverage detected