XLPack 7.0
XLPack Numerical Library (Excel VBA) Reference Manual
Loading...
Searching...
No Matches

◆ Dnrm2()

Function Dnrm2 ( N As  Long,
X_I As  Double,
Optional IncX As  Long = 1 
)

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

Purpose
Computes the Euclidean norm of a vector (2-norm).
Returns
Double
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_IAn element X(I) of the array X(). Starting from this location, vector x is stored with element spacing IncX.
[in]IncX(Optional)
Element spacing of vector x in array X(). (If IncX <= 0, returns 0) (default = 1)
Reference
BLAS