1 *> \brief \b DZSUM1 forms the 1-norm of the complex vector using the true absolute value.
3 * =========== DOCUMENTATION ===========
5 * Online html documentation available at
6 * http://www.netlib.org/lapack/explore-html/
9 *> Download DZSUM1 + dependencies
10 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dzsum1.f">
12 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/dzsum1.f">
14 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/dzsum1.f">
21 * DOUBLE PRECISION FUNCTION DZSUM1( N, CX, INCX )
23 * .. Scalar Arguments ..
26 * .. Array Arguments ..
36 *> DZSUM1 takes the sum of the absolute values of a complex
37 *> vector and returns a double precision result.
39 *> Based on DZASUM from the Level 1 BLAS.
40 *> The change is to use the 'genuine' absolute value.
49 *> The number of elements in the vector CX.
54 *> CX is COMPLEX*16 array, dimension (N)
55 *> The vector whose elements will be summed.
61 *> The spacing between successive values of CX. INCX > 0.
67 *> \author Univ. of Tennessee
68 *> \author Univ. of California Berkeley
69 *> \author Univ. of Colorado Denver
72 *> \date September 2012
74 *> \ingroup complex16OTHERauxiliary
79 *> Nick Higham for use with ZLACON.
81 * =====================================================================
82 DOUBLE PRECISION FUNCTION DZSUM1( N, CX, INCX )
84 * -- LAPACK auxiliary routine (version 3.4.2) --
85 * -- LAPACK is a software package provided by Univ. of Tennessee, --
86 * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
89 * .. Scalar Arguments ..
92 * .. Array Arguments ..
96 * =====================================================================
100 DOUBLE PRECISION STEMP
102 * .. Intrinsic Functions ..
105 * .. Executable Statements ..
114 * CODE FOR INCREMENT NOT EQUAL TO 1
117 DO 10 I = 1, NINCX, INCX
119 * NEXT LINE MODIFIED.
121 STEMP = STEMP + ABS( CX( I ) )
126 * CODE FOR INCREMENT EQUAL TO 1
131 * NEXT LINE MODIFIED.
133 STEMP = STEMP + ABS( CX( I ) )