114 SUBROUTINE dlacon( N, V, X, ISGN, EST, KASE )
126 DOUBLE PRECISION V( * ), X( * )
133 parameter( itmax = 5 )
134 DOUBLE PRECISION ZERO, ONE, TWO
135 parameter( zero = 0.0d+0, one = 1.0d+0, two = 2.0d+0 )
138 INTEGER I, ITER, J, JLAST, JUMP
139 DOUBLE PRECISION ALTSGN, ESTOLD, TEMP
143 DOUBLE PRECISION DASUM
144 EXTERNAL idamax, dasum
150 INTRINSIC abs, dble, nint, sign
159 x( i ) = one / dble( n )
166 GO TO ( 20, 40, 70, 110, 140 )jump
178 est = dasum( n, x, 1 )
181 x( i ) = sign( one, x( i ) )
182 isgn( i ) = nint( x( i ) )
192 j = idamax( n, x, 1 )
210 CALL dcopy( n, x, 1, v, 1 )
212 est = dasum( n, v, 1 )
214 IF( nint( sign( one, x( i ) ) ).NE.isgn( i ) )
226 x( i ) = sign( one, x( i ) )
227 isgn( i ) = nint( x( i ) )
238 j = idamax( n, x, 1 )
239 IF( ( x( jlast ).NE.abs( x( j ) ) ) .AND. ( iter.LT.itmax ) )
THEN
249 x( i ) = altsgn*( one+dble( i-1 ) / dble( n-1 ) )
260 temp = two*( dasum( n, x, 1 ) / dble( 3*n ) )
261 IF( temp.GT.est )
THEN
262 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...