Scroll to navigation

DZSUM1(1) LAPACK auxiliary routine (version 3.2) DZSUM1(1)

NAME

DZSUM1 - takes the sum of the absolute values of a complex vector and returns a double precision result

SYNOPSIS

FUNCTION DZSUM1( N, CX, INCX )

INTEGER INCX, N COMPLEX*16 CX( * )

PURPOSE

DZSUM1 takes the sum of the absolute values of a complex vector and returns a double precision result. Based on DZASUM from the Level 1 BLAS.
The change is to use the 'genuine' absolute value.
Contributed by Nick Higham for use with ZLACON.

ARGUMENTS

The number of elements in the vector CX.
The vector whose elements will be summed.
The spacing between successive values of CX. INCX > 0.
November 2008 LAPACK auxiliary routine (version 3.2)