__device__ double rsqrt ( double  x  ) 

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

Returns:
Returns $1/\sqrt{x}$.
  • rsqrt($+\infty$) returns +0.
  • rsqrt($\pm 0$) returns $\pm \infty$.
  • rsqrt(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-2.


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA