3.91. __nv_erff
-
float @__nv_erff(float %x)
Calculate the error function of the input argument.
Calculate the value of the error function for the input argument
x, \(\frac{2}{\sqrt \pi} \int_0^x e^{-t^2} dt\).Note
For accuracy information, see the CUDA C++ Programming Guide, Mathematical Functions Appendix, Single-Precision Floating-Point Functions section.
- Returns
__nv_erff( \(\pm 0\) ) returns \(\pm 0\).
__nv_erff( \(\pm \infty\) ) returns \(\pm 1\).