sum1#
Functions
-
f32 scsum1(const INT n, const c64 *restrict CX, const INT incx)#
SCSUM1 takes the sum of the absolute values of a complex vector and returns a f32 precision result.
Based on DZASUM from the Level 1 BLAS. The change is to use the ‘genuine’ absolute value.
Parameters
innThe number of elements in the vector CX.
inCXComplex array, dimension (n). The vector whose elements will be summed.
inincxThe spacing between successive values of CX. incx > 0.
f32 scsum1(
const INT n,
const c64* restrict CX,
const INT incx
);
Functions
-
f64 dzsum1(const INT n, const c128 *restrict CX, const INT incx)#
DZSUM1 takes the sum of the absolute values of a complex vector and returns a f64 precision result.
Based on DZASUM from the Level 1 BLAS. The change is to use the ‘genuine’ absolute value.
Parameters
innThe number of elements in the vector CX.
inCXComplex array, dimension (n). The vector whose elements will be summed.
inincxThe spacing between successive values of CX. incx > 0.
f64 dzsum1(
const INT n,
const c128* restrict CX,
const INT incx
);