3.288. __nv_rnorm4df

float @__nv_rnorm4df(float %a, float %b, float %c, float %d)

Calculate the reciprocal square root of the sum of squares of four coordinates of argument.

Calculate the reciprocal length of four dimensional vector p in euclidean space undue overflow or underflow.

Note

For accuracy information, see the CUDA C++ Programming Guide, Mathematical Functions Appendix, Single-Precision Floating-Point Functions section.

Returns

Returns inverted length of the 3D vector \(\frac{1}{\sqrt{p.x^2+p.y^2+p.z^2+o.t^2}}\). If the correct value would overflow, returns \(+\infty\). If the correct value would underflow, returns 0.