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

Function count

src/api/cpp/reduce.cpp:151–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151array count(const array &in, const int dim) {
152 af_array out = 0;
153 AF_THROW(af_count(&out, in.get(), getFNSD(dim, in.dims())));
154 return array(out);
155}
156
157void countByKey(array &keys_out, array &vals_out, const array &keys,
158 const array &vals, const int dim) {

Callers 2

TESTFunction · 0.85
TESTFunction · 0.85

Calls 5

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

Tested by

no test coverage detected