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

Function abs

extern/half/include/half.hpp:2232–2232  ·  view source on GitHub ↗

Absolute value. \param arg operand \return absolute value of \a arg template typename enable ::type abs(T arg) { return unary_specialized ::fabs(arg); }

Source from the content-addressed store, hash-verified

2230 /// \return absolute value of \a arg
2231// template<typename T> typename enable<T,T>::type abs(T arg) { return unary_specialized<T>::fabs(arg); }
2232 inline half abs(half arg) { return unary_specialized<half>::fabs(arg); }
2233 inline expr abs(expr arg) { return unary_specialized<expr>::fabs(arg); }
2234
2235 /// Absolute value.

Callers 15

float2half_implFunction · 0.70
lgammaMethod · 0.70
logbMethod · 0.70
distanceFunction · 0.50
trainFunction · 0.50
distanceFunction · 0.50
abserrFunction · 0.50
trainFunction · 0.50
rbm_demoFunction · 0.50
abserrFunction · 0.50
trainFunction · 0.50
distanceFunction · 0.50

Calls 1

fabsFunction · 0.85

Tested by

no test coverage detected