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

Method asinh

extern/half/include/half.hpp:1534–1541  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1532 /// \param arg function argument
1533 /// \return function value stored in single-preicision
1534 static expr asinh(float arg)
1535 {
1536 #if HALF_ENABLE_CPP11_CMATH
1537 return expr(std::asinh(arg));
1538 #else
1539 return expr((arg==-std::numeric_limits<float>::infinity()) ? arg : static_cast<float>(std::log(arg+std::sqrt(arg*arg+1.0))));
1540 #endif
1541 }
1542
1543 /// Hyperbolic area cosine implementation.
1544 /// \param arg function argument

Callers

nothing calls this directly

Calls 5

exprClass · 0.85
asinhFunction · 0.85
infinityFunction · 0.85
logFunction · 0.85
sqrtFunction · 0.85

Tested by

no test coverage detected