__device__ float rsqrtf ( float  x  ) 

Calculate the reciprocal of the nonnegative square root of x, $1/\sqrt{x}$.

Returns:
Returns $1/\sqrt{x}$.
  • rsqrtf($+\infty$) returns +0.
  • rsqrtf($\pm 0$) returns $\pm \infty$.
  • rsqrtf(x) returns NaN if x is less than 0.
Note:
For accuracy information for this function see the CUDA C Programming Guide, Appendix C, Table C-1.


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA