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

Function cabs

src/backend/cpu/kernel/ireduce.hpp:22–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21template<typename T>
22double cabs(const T in) {
23 return (double)in;
24}
25static double cabs(const char in) { return (double)(in > 0); }
26static double cabs(const cfloat &in) { return (double)abs(in); }
27static double cabs(const cdouble &in) { return (double)abs(in); }

Callers 2

operator()Method · 0.70
operator()Method · 0.70

Calls 1

absFunction · 0.50

Tested by

no test coverage detected