LAPACK  3.6.1 LAPACK: Linear Algebra PACKage
 double precision function dzasum ( integer N, complex*16, dimension(*) ZX, integer INCX )

DZASUM

Purpose:
```    DZASUM takes the sum of the (|Re(.)| + |Im(.)|)'s of a complex vector and
returns a single precision result.```
Date
November 2015
Further Details:
```     jack dongarra, 3/11/78.
modified 3/93 to return if incx .le. 0.
modified 12/3/93, array(1) declarations changed to array(*)```

Definition at line 54 of file dzasum.f.

54 *
55 * -- Reference BLAS level1 routine (version 3.6.0) --
56 * -- Reference BLAS is a software package provided by Univ. of Tennessee, --
57 * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
58 * November 2015
59 *
60 * .. Scalar Arguments ..
61  INTEGER incx,n
62 * ..
63 * .. Array Arguments ..
64  COMPLEX*16 zx(*)
65 * ..
66 *
67 * =====================================================================
68 *
69 * .. Local Scalars ..
70  DOUBLE PRECISION stemp
71  INTEGER i,nincx
72 * ..
73 * .. External Functions ..
74  DOUBLE PRECISION dcabs1
75  EXTERNAL dcabs1
76 * ..
77  dzasum = 0.0d0
78  stemp = 0.0d0
79  IF (n.LE.0 .OR. incx.LE.0) RETURN
80  IF (incx.EQ.1) THEN
81 *
82 * code for increment equal to 1
83 *
84  DO i = 1,n
85  stemp = stemp + dcabs1(zx(i))
86  END DO
87  ELSE
88 *
89 * code for increment not equal to 1
90 *
91  nincx = n*incx
92  DO i = 1,nincx,incx
93  stemp = stemp + dcabs1(zx(i))
94  END DO
95  END IF
96  dzasum = stemp
97  RETURN
double precision function dcabs1(Z)
DCABS1
Definition: dcabs1.f:41
double precision function dzasum(N, ZX, INCX)
DZASUM
Definition: dzasum.f:54

Here is the caller graph for this function: