XLPack 7.0
XLPack Numerical Library (C API) Reference Manual
Loading...
Searching...
No Matches

◆ dnrm2()

double dnrm2 ( int  n,
double  x[],
int  incx 
)

||x||2 (2-norm) (BLAS 1)

Purpose
This routine computes the Euclidean norm of a vector (2-norm).
Returns
Euclidean norm of a vector x (= sqrt(x^T*x)) (2-norm).
Parameters
[in]nNumber of elements in vector x. (If n <= 0, returns 0)
[in]x[]Array x[lx] (lx >= 1 + (n - 1)*incx)
Input vector x.
[in]incxStorage spacing between elements of x. (If incx <= 0, returns 0)
Reference
BLAS