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

Method atanh

samples/common/half.h:1995–2002  ·  view source on GitHub ↗

Hyperbolic area tangent implementation. \param arg function argument \return function value stored in single-preicision

Source from the content-addressed store, hash-verified

1993 /// \param arg function argument
1994 /// \return function value stored in single-preicision
1995 static expr atanh(float arg)
1996 {
1997#if HALF_ENABLE_CPP11_CMATH
1998 return expr(std::atanh(arg));
1999#else
2000 return expr(static_cast<float>(0.5 * std::log((1.0 + arg) / (1.0 - arg))));
2001#endif
2002 }
2003
2004 /// Error function implementation.
2005 /// \param arg function argument

Callers

nothing calls this directly

Calls 3

exprClass · 0.70
atanhFunction · 0.70
logFunction · 0.70

Tested by

no test coverage detected