3.263. __nv_rsqrt

原型:

double @__nv_rsqrt(double %x) 

描述:

计算非负平方根的倒数,即x, 1 / x .

返回值

返回值 1 / x .
  • __nv_rsqrt( + ) 返回 +0。

  • __nv_rsqrt( ± 0 ) 返回 ± .

  • __nv_rsqrt(x) 如果x小于 0,则返回 NaN。

注意

有关精度信息,请参阅 CUDA C++ 编程指南的“数学函数附录”中的“双精度浮点函数”部分。

库可用性:

Compute 2.0:是

Compute 3.0:是

Compute 3.5:是