Content |
CXXBLAS Level 1: asum
asum (defined in namespace cxxblas) computes the sum of the absolute values of elements in a vector, i.e. \(\sum\limits_{i} |x_i|\).
Generic Implementation
n |
(input) |
x |
(input) |
incX |
(input) |
absSum |
(output) |
CBLAS Implementation
If a CBLAS implementations like ATLAS, GotoBLAS, ... is available then the following optimized variants are provided.