Go to the source code of this file.
double precision function dasum |
( |
integer |
N, |
|
|
double precision, dimension(*) |
DX, |
|
|
integer |
INCX |
|
) |
| |
DASUM
- Purpose:
DASUM takes the sum of the absolute values.
- Author
- Univ. of Tennessee
-
Univ. of California Berkeley
-
Univ. of Colorado Denver
-
NAG Ltd.
- Date
- November 2011
- Further Details:
jack dongarra, linpack, 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 53 of file dasum.f.
63 DOUBLE PRECISION dx(*)
69 DOUBLE PRECISION dtemp
77 IF (n.LE.0 .OR. incx.LE.0)
RETURN
87 dtemp = dtemp + dabs(dx(i))
96 dtemp = dtemp + dabs(dx(i)) + dabs(dx(i+1)) +
97 $ dabs(dx(i+2)) + dabs(dx(i+3)) +
98 $ dabs(dx(i+4)) + dabs(dx(i+5))
106 dtemp = dtemp + dabs(dx(i))
double precision function dasum(N, DX, INCX)
DASUM