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

Method expm1

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

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

Source from the content-addressed store, hash-verified

1383 /// \param arg function argument
1384 /// \return function value stored in single-preicision
1385 static expr expm1(float arg)
1386 {
1387 #if HALF_ENABLE_CPP11_CMATH
1388 return expr(std::expm1(arg));
1389 #else
1390 return expr(static_cast<float>(std::exp(static_cast<double>(arg))-1.0));
1391 #endif
1392 }
1393
1394 /// Binary exponential implementation.
1395 /// \param arg function argument

Callers

nothing calls this directly

Calls 3

exprClass · 0.85
expm1Function · 0.85
expFunction · 0.85

Tested by

no test coverage detected