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

Method erf

extern/half/include/half.hpp:1570–1577  ·  view source on GitHub ↗

Error function implementation. \param arg function argument \return function value stored in single-preicision

Source from the content-addressed store, hash-verified

1568 /// \param arg function argument
1569 /// \return function value stored in single-preicision
1570 static expr erf(float arg)
1571 {
1572 #if HALF_ENABLE_CPP11_CMATH
1573 return expr(std::erf(arg));
1574 #else
1575 return expr(static_cast<float>(erf(static_cast<double>(arg))));
1576 #endif
1577 }
1578
1579 /// Complementary implementation.
1580 /// \param arg function argument

Callers

nothing calls this directly

Calls 6

exprClass · 0.85
erfFunction · 0.85
builtin_isinfFunction · 0.85
sqrtFunction · 0.85
expFunction · 0.85
builtin_signbitFunction · 0.85

Tested by

no test coverage detected