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

Method exp2

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

Binary exponential implementation. \param arg function argument \return function value stored in single-preicision

Source from the content-addressed store, hash-verified

1395 /// \param arg function argument
1396 /// \return function value stored in single-preicision
1397 static expr exp2(float arg)
1398 {
1399 #if HALF_ENABLE_CPP11_CMATH
1400 return expr(std::exp2(arg));
1401 #else
1402 return expr(static_cast<float>(std::exp(arg*0.69314718055994530941723212145818)));
1403 #endif
1404 }
1405
1406 /// Logarithm implementation.
1407 /// \param arg function argument

Callers

nothing calls this directly

Calls 3

exprClass · 0.85
exp2Function · 0.85
expFunction · 0.85

Tested by

no test coverage detected