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

Function abs

src/api/cpp/complex.cpp:113–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113float abs(const cfloat &val) {
114 std::complex<float> out(val.real, val.imag);
115 return abs(out);
116}
117
118double abs(const cdouble &val) {
119 std::complex<double> out(val.real, val.imag);

Callers 2

sobelFunction · 0.70
convRangeFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected