Computes the Euclidean length of the N-vector stored in X() with storage increment INCX.
REAL FUNCTION SNRM2(N,X,INCX)
INTEGER INCX, N
REAL X(*)
DOUBLE PRECISION FUNCTION DNRM2(N,X,INCX) INTEGER INCX,N DOUBLE PRECISION X(*)
REAL FUNCTION SCNRM2(N,X,INCX) INTEGER INCX,N COMPLEX X(*)
DOUBLE PRECISION FUNCTION DZNRM2(N,X,INCX) INTEGER INCX,N COMPLEX*16 X(*)
The SNRM2, DNRM2, SCNRM2, or DZNRM2 function returns the Euclidean norm of the N-vector stored in X() with storage increment INCX.
For values of N <= 0, a value of 0 is returned.