MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / erfc

Method erfc

samples/common/half.h:2019–2026  ·  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

2017 /// \param arg function argument
2018 /// \return function value stored in single-preicision
2019 static expr erfc(float arg)
2020 {
2021#if HALF_ENABLE_CPP11_CMATH
2022 return expr(std::erfc(arg));
2023#else
2024 return expr(static_cast<float>(1.0 - erf(static_cast<double>(arg))));
2025#endif
2026 }
2027
2028 /// Gamma logarithm implementation.
2029 /// \param arg function argument

Callers

nothing calls this directly

Calls 3

exprClass · 0.70
erfcFunction · 0.70
erfFunction · 0.70

Tested by

no test coverage detected