XLPack 6.1
C/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