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

Function sum

src/api/cpp/reduce.cpp:17–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16namespace af {
17array sum(const array &in, const int dim) {
18 af_array out = 0;
19 AF_THROW(af_sum(&out, in.get(), getFNSD(dim, in.dims())));
20 return array(out);
21}
22
23array sum(const array &in, const int dim, const double nanval) {
24 af_array out = 0;

Callers 15

TESTFunction · 0.50
TESTFunction · 0.50
gforFunction · 0.50
TEST_PFunction · 0.50
TESTFunction · 0.50
TESTFunction · 0.50
distanceFunction · 0.50
gforFunction · 0.50
naive_bayes_predictFunction · 0.50
costFunction · 0.50
trainMethod · 0.50
predictFunction · 0.50

Calls 6

af_sumFunction · 0.85
getFNSDFunction · 0.85
af_sum_nanFunction · 0.85
arrayClass · 0.50
getMethod · 0.45
dimsMethod · 0.45

Tested by

no test coverage detected