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

Function countByKey

src/api/cpp/reduce.cpp:157–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void countByKey(array &keys_out, array &vals_out, const array &keys,
158 const array &vals, const int dim) {
159 af_array okeys, ovals;
160 AF_THROW(af_count_by_key(&okeys, &ovals, keys.get(), vals.get(),
161 getFNSD(dim, vals.dims())));
162 keys_out = array(okeys);
163 vals_out = array(ovals);
164}
165
166void min(array &val, array &idx, const array &in, const int dim) {
167 af_array out = 0;

Callers 2

TYPED_TESTFunction · 0.85
TESTFunction · 0.85

Calls 5

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

Tested by

no test coverage detected