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

Method erf

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

2005 /// \param arg function argument
2006 /// \return function value stored in single-preicision
2007 static expr erf(float arg)
2008 {
2009#if HALF_ENABLE_CPP11_CMATH
2010 return expr(std::erf(arg));
2011#else
2012 return expr(static_cast<float>(erf(static_cast<double>(arg))));
2013#endif
2014 }
2015
2016 /// Complementary implementation.
2017 /// \param arg function argument

Callers

nothing calls this directly

Calls 6

exprClass · 0.70
erfFunction · 0.70
builtin_isinfFunction · 0.70
sqrtFunction · 0.70
expFunction · 0.70
builtin_signbitFunction · 0.70

Tested by

no test coverage detected