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

◆ dznrm2()

double dznrm2 ( int  n,
doublecomplex  zx[],
int  incx 
)

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

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