1 integer function icamax
(n
,cx
,incx
)
3 c finds the index of element having max. absolute value.
4 c jack dongarra, linpack, 3/11/78.
5 c modified 3/93 to return if incx .le. 0.
6 c modified 12/3/93, array(1) declarations changed to array(*)
13 cabs1
(zdum
) = abs
(real(zdum
)) + abs
(aimag
(zdum
))
16 if( n
.lt
.1 .or
. incx
.le
.0 ) return
21 c code for increment not equal to 1
27 if(cabs1
(cx
(ix
)).le
.smax
) go to 5
34 c code for increment equal to 1
36 20 smax
= cabs1
(cx
(1))
38 if(cabs1
(cx
(i
)).le
.smax
) go to 30