1 integer function idamax
(n
,dx
,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(*)
8 double precision dx
(*),dmax
12 if( n
.lt
.1 .or
. incx
.le
.0 ) return
17 c code for increment not equal to 1
23 if(dabs
(dx
(ix
)).le
.dmax
) go to 5
30 c code for increment equal to 1
34 if(dabs
(dx
(i
)).le
.dmax
) go to 30