DASUM
DASUM is a basic routine in the BLAS (Basic Linear Algebra Subprograms) library that computes the sum of the absolute values of the elements of a double-precision vector. It is a Level 1 BLAS operation and is implemented in many numerical libraries, including NetLIB BLAS, OpenBLAS, ATLAS, and Intel MKL. DASUM is commonly used to obtain the L1 norm of a vector or as a building block in more complex algorithms.
The function operates on a vector with a specified stride. In Fortran, the routine is typically declared
Formally, the operation is sum_{i=0}^{N-1} |X[i*INCX]|. If N <= 0, the result is 0.0. The increment INCX
Related routines include SASUM (single precision) and SCASUM, as part of the same family of vector-norm computations.