116 SUBROUTINE dlacon( N, V, X, ISGN, EST, KASE )
129 DOUBLE PRECISION V( * ), X( * )
136 parameter ( itmax = 5 )
137 DOUBLE PRECISION ZERO, ONE, TWO
138 parameter ( zero = 0.0d+0, one = 1.0d+0, two = 2.0d+0 )
141 INTEGER I, ITER, J, JLAST, JUMP
142 DOUBLE PRECISION ALTSGN, ESTOLD, TEMP
146 DOUBLE PRECISION DASUM
147 EXTERNAL idamax, dasum
153 INTRINSIC abs, dble, nint, sign
162 x( i ) = one / dble( n )
169 GO TO ( 20, 40, 70, 110, 140 )jump
181 est = dasum( n, x, 1 )
184 x( i ) = sign( one, x( i ) )
185 isgn( i ) = nint( x( i ) )
195 j = idamax( n, x, 1 )
213 CALL dcopy( n, x, 1, v, 1 )
215 est = dasum( n, v, 1 )
217 IF( nint( sign( one, x( i ) ) ).NE.isgn( i ) )
229 x( i ) = sign( one, x( i ) )
230 isgn( i ) = nint( x( i ) )
241 j = idamax( n, x, 1 )
242 IF( ( x( jlast ).NE.abs( x( j ) ) ) .AND. ( iter.LT.itmax ) )
THEN
252 x( i ) = altsgn*( one+dble( i-1 ) / dble( n-1 ) )
263 temp = two*( dasum( n, x, 1 ) / dble( 3*n ) )
264 IF( temp.GT.est )
THEN
265 CALL dcopy( n, x, 1, v, 1 )
subroutine dcopy(N, DX, INCX, DY, INCY)
DCOPY
subroutine dlacon(N, V, X, ISGN, EST, KASE)
DLACON estimates the 1-norm of a square matrix, using reverse communication for evaluating matrix-vec...