XLPack 7.0
XLPack Numerical Library (C API) Reference Manual
Loading...
Searching...
No Matches

◆ dasum()

double dasum ( int  n,
double  x[],
int  incx 
)

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

Purpose
This routine takes the sum of the absolute values of a vector (1-norm).
Returns
Sum of the absolute values of elements of the vector x (1-norm).
Parameters
[in]nNumber of elements in input vector x. (If n <= 0, dasum returns 0)
[in]x[]Array x[lx] (lx >= 1 + (n - 1)*incx)
Input vector x.
[in]incxStorage spacing between elements of vector x. (If incx <= 0, dasum returns 0)
Reference
BLAS