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

Method erfc

extern/half/include/half.hpp:1582–1589  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1580 /// \param arg function argument
1581 /// \return function value stored in single-preicision
1582 static expr erfc(float arg)
1583 {
1584 #if HALF_ENABLE_CPP11_CMATH
1585 return expr(std::erfc(arg));
1586 #else
1587 return expr(static_cast<float>(1.0-erf(static_cast<double>(arg))));
1588 #endif
1589 }
1590
1591 /// Gamma logarithm implementation.
1592 /// \param arg function argument

Callers

nothing calls this directly

Calls 3

exprClass · 0.85
erfcFunction · 0.85
erfFunction · 0.85

Tested by

no test coverage detected