116 SUBROUTINE slacon( N, V, X, ISGN, EST, KASE )
136 parameter ( itmax = 5 )
138 parameter ( zero = 0.0e+0, one = 1.0e+0, two = 2.0e+0 )
141 INTEGER I, ITER, J, JLAST, JUMP
142 REAL ALTSGN, ESTOLD, TEMP
147 EXTERNAL isamax, sasum
153 INTRINSIC abs, nint,
REAL, SIGN
162 x( i ) = one /
REAL( n )
169 GO TO ( 20, 40, 70, 110, 140 )jump
181 est = sasum( n, x, 1 )
184 x( i ) = sign( one, x( i ) )
185 isgn( i ) = nint( x( i ) )
195 j = isamax( n, x, 1 )
213 CALL scopy( n, x, 1, v, 1 )
215 est = sasum( 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 = isamax( n, x, 1 )
242 IF( ( x( jlast ).NE.abs( x( j ) ) ) .AND. ( iter.LT.itmax ) )
THEN
252 x( i ) = altsgn*( one+
REAL( I-1 ) /
REAL( N-1 ) )
263 temp = two*( sasum( n, x, 1 ) /
REAL( 3*N ) )
264 IF( temp.GT.est )
THEN
265 CALL scopy( n, x, 1, v, 1 )
subroutine slacon(N, V, X, ISGN, EST, KASE)
SLACON estimates the 1-norm of a square matrix, using reverse communication for evaluating matrix-vec...
subroutine scopy(N, SX, INCX, SY, INCY)
SCOPY