3.285. __nv_rnorm3d

double @__nv_rnorm3d(double %a, double %b, double %c)

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

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

Note

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

Returns

Returns inverted length of the 3D vector \(\sqrt{p.x^2+p.y^2+p.z^2}\). If the correct value would overflow, returns \(+\infty\). If the correct value would underflow, returns 0. If two of the input arguments is 0, returns remaining argument