sum1#

Functions

f32 scsum1(
    const INT           n,
    const c64* restrict CX,
    const INT           incx
);
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

in
n

The number of elements in the vector CX.

in
CX

Complex array, dimension (n). The vector whose elements will be summed.

in
incx

The spacing between successive values of CX. incx > 0.

Functions

f64 dzsum1(
    const INT            n,
    const c128* restrict CX,
    const INT            incx
);
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

in
n

The number of elements in the vector CX.

in
CX

Complex array, dimension (n). The vector whose elements will be summed.

in
incx

The spacing between successive values of CX. incx > 0.