dzasum(3f) - [BLAS:DOUBLE_BLAS_LEVEL1]
 double precision function dzasum(n,zx,incx)
   .. Scalar Arguments ..
   integer,intent(in)                 :: incx,n
   ..
   .. Array Arguments ..
   complex(kind=real64),intent(inout) :: zx(*)
   ..
 DZASUM takes the sum of the (|Re(.)| + |Im(.)|)'s of a complex vector and
 returns a double precision result.
N
       N is INTEGER
      number of elements in input vector(s)
ZX
       ZX is complex(kind=real64) array, dimension ( 1 + ( N - 1 )*abs( INCX ) )
INCX
       INCX is INTEGER
      storage spacing between elements of ZX
date:November 2017
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(*)
Online html documentation available at
http://www.netlib.org/lapack/explore-html/
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | n | |||
| complex(kind=real64), | intent(inout) | :: | zx(*) | |||
| integer, | intent(in) | :: | incx | 
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public | :: | i | ||||
| integer, | public | :: | nincx | ||||
| double precision, | public | :: | stemp | 
       double precision function dzasum(n,zx,incx)
      implicit none
!
!  -- Reference BLAS level1 routine (version 3.8.0) --
!  -- Reference BLAS is a software package provided by Univ. of Tennessee,    --
!  -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
!     November 2017
!
!     .. Scalar Arguments ..
      integer,intent(in)                 :: incx,n
!     ..
!     .. Array Arguments ..
      complex(kind=real64),intent(inout) :: zx(*)
!     ..
!
!  =====================================================================
!
!     .. Local Scalars ..
      double precision stemp
      integer i,nincx
!     ..
!     .. External Functions ..  DOUBLE PRECISION DCABS1
!     ..
      dzasum = 0.0d0
      stemp = 0.0d0
      if (n.le.0 .or. incx.le.0) return
      if (incx.eq.1) then
!
!        code for increment equal to 1
!
         do i = 1,n
            stemp = stemp + dcabs1(zx(i))
         enddo
      else
!
!        code for increment not equal to 1
!
         nincx = n*incx
         do i = 1,nincx,incx
            stemp = stemp + dcabs1(zx(i))
         enddo
      endif
      dzasum = stemp
      end function dzasum