Content

BLAS Level 1: nrm2

nrm2 (defined in namespace flens::blas) computes the euklidian norm of \(x\), i.e. \(\sqrt{\sum\limits_{i} |x_i|^2}\).

Two variants are provided:

Subroutine Variant

x

(input) real or complex valued DenseVector
Source vector.

norm

(output) real scalar
On exit, the computed euklidian norm of vector \(x\).

Function Variant

x

(input) real or complex valued DenseVector
Source vector.

Return value:

On exit, the computed euklidian norm of vector \(x\).