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

Method atanh

extern/half/include/half.hpp:1558–1565  ·  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

1556 /// \param arg function argument
1557 /// \return function value stored in single-preicision
1558 static expr atanh(float arg)
1559 {
1560 #if HALF_ENABLE_CPP11_CMATH
1561 return expr(std::atanh(arg));
1562 #else
1563 return expr(static_cast<float>(0.5*std::log((1.0+arg)/(1.0-arg))));
1564 #endif
1565 }
1566
1567 /// Error function implementation.
1568 /// \param arg function argument

Callers

nothing calls this directly

Calls 3

exprClass · 0.85
atanhFunction · 0.85
logFunction · 0.85

Tested by

no test coverage detected