Loading...
Searching...
No Matches

## dzsum1()

double precision function dzsum1 | ( | integer | n,
|  | complex*16, dimension( * ) | cx,
|  | integer | incx )

DZSUM1 forms the 1-norm of the complex vector using the true absolute value.

Download DZSUM1 + dependencies [TGZ] [ZIP] [TXT]

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.
      !>

Parameters

  [in]

  N

      !>          N is INTEGER
      !>          The number of elements in the vector CX.
      !>

  [in]

  CX

      !>          CX is COMPLEX*16 array, dimension (N)
      !>          The vector whose elements will be summed.
      !>

  [in]

  INCX

      !>          INCX is INTEGER
      !>          The spacing between successive values of CX.  INCX > 0.
      !>

Author
  Univ. of Tennessee
  Univ. of California Berkeley
  Univ. of Colorado Denver
  NAG Ltd.

Contributors:
  Nick Higham for use with ZLACON.