3.260. __nv_norm4df
-
float @__nv_norm4df(float %a, float %b, float %c, float %d)
Calculate the square root of the sum of squares of four coordinates of argument.
Calculate the length of four dimensional vector
pin euclidean space without 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 the length of the 4D vector \(\sqrt{p.x^2+p.y^2+p.z^2+p.t^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