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

Method log1p

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

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

Source from the content-addressed store, hash-verified

1417 /// \param arg function argument
1418 /// \return function value stored in single-preicision
1419 static expr log1p(float arg)
1420 {
1421 #if HALF_ENABLE_CPP11_CMATH
1422 return expr(std::log1p(arg));
1423 #else
1424 return expr(static_cast<float>(std::log(1.0+arg)));
1425 #endif
1426 }
1427
1428 /// Binary logarithm implementation.
1429 /// \param arg function argument

Callers

nothing calls this directly

Calls 3

exprClass · 0.85
log1pFunction · 0.85
logFunction · 0.85

Tested by

no test coverage detected