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

Function reduce

src/api/c/reduce.cpp:40–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38
39template<af_op_t op, typename Ti, typename To>
40static inline af_array reduce(const af_array in, const int dim,
41 bool change_nan = false, double nanval = 0) {
42 return getHandle(
43 reduce<op, Ti, To>(getArray<Ti>(in), dim, change_nan, nanval));
44}
45
46template<af_op_t op, typename Ti, typename Tk, typename To>
47static inline void reduce_by_key(af_array *keys_out, af_array *vals_out,

Callers 1

cppReduceTestFunction · 0.50

Calls 1

getHandleFunction · 0.70

Tested by

no test coverage detected