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

Method acosh

extern/half/include/half.hpp:1546–1553  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1544 /// \param arg function argument
1545 /// \return function value stored in single-preicision
1546 static expr acosh(float arg)
1547 {
1548 #if HALF_ENABLE_CPP11_CMATH
1549 return expr(std::acosh(arg));
1550 #else
1551 return expr((arg<-1.0f) ? std::numeric_limits<float>::quiet_NaN() : static_cast<float>(std::log(arg+std::sqrt(arg*arg-1.0))));
1552 #endif
1553 }
1554
1555 /// Hyperbolic area tangent implementation.
1556 /// \param arg function argument

Callers

nothing calls this directly

Calls 4

exprClass · 0.85
acoshFunction · 0.85
logFunction · 0.85
sqrtFunction · 0.85

Tested by

no test coverage detected