Content

BLAS Level 1: asum

asum (defined in namespace flens::blas) computes the sum of the absolute values of elements in a vector, i.e. \(\sum\limits_{i} |x_i|\).

Two variants are provided:

Subroutine Variant

x

(input) real or complex valued DenseVector
Source vector.

absoluteSum

(output) real scalar
On exit, the computed sum of absolute values of elements of vector \(x\).

Function Variant

x

(input) real or complex valued DenseVector
Source vector.

Return value:

The computed sum of absolute values of elements of vector \(x\).