MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / log1p

Method log1p

samples/common/half.h:1816–1823  ·  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

1814 /// \param arg function argument
1815 /// \return function value stored in single-preicision
1816 static expr log1p(float arg)
1817 {
1818#if HALF_ENABLE_CPP11_CMATH
1819 return expr(std::log1p(arg));
1820#else
1821 return expr(static_cast<float>(std::log(1.0 + arg)));
1822#endif
1823 }
1824
1825 /// Binary logarithm implementation.
1826 /// \param arg function argument

Callers

nothing calls this directly

Calls 3

exprClass · 0.70
log1pFunction · 0.70
logFunction · 0.70

Tested by

no test coverage detected