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

Function abs

src/backend/opencl/math.hpp:36–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35template<typename T>
36static inline T abs(T val) {
37 return std::abs(val);
38}
39template<typename T>
40static inline T min(T lhs, T rhs) {
41 return std::min(lhs, rhs);

Callers 9

calc_scaleFunction · 0.70
svdFunction · 0.70
diagCreateFunction · 0.70
diagExtractFunction · 0.70
max<cfloat>Function · 0.70
max<cdouble>Function · 0.70
min<cfloat>Function · 0.70
min<cdouble>Function · 0.70
cabsFunction · 0.50

Calls 1

sqrtFunction · 0.85

Tested by

no test coverage detected