3.264. __nv_rsqrtf

原型:

float @__nv_rsqrtf(float %x) 

描述:

计算非负平方根的倒数,该非负平方根的输入为x, 1 / x .

返回值

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

  • __nv_rsqrtf( ± 0 ) 返回 ± .

  • __nv_rsqrtf(x) 如果...则返回 NaNx小于 0。

注意

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

库可用性:

Compute 2.0:是

Compute 3.0:是

Compute 3.5:是