3.293. __nv_rsqrtf
-
float @__nv_rsqrtf(float %x)
Calculate the reciprocal of the square root of the input argument.
Calculate the reciprocal of the nonnegative square root of
x, \(1/\sqrt{x}\).Note
For accuracy information, see the CUDA C++ Programming Guide, Mathematical Functions Appendix, Double-Precision Floating-Point Functions section.
- Returns
Returns \(1/\sqrt{x}\).
__nv_rsqrtf( \(+\infty\) ) returns +0.
__nv_rsqrtf( \(\pm 0\) ) returns \(\pm \infty\).
__nv_rsqrtf(
x) returns NaN ifxis less than 0.