135 SUBROUTINE slacn2( N, V, X, ISGN, EST, KASE, ISAVE )
146 INTEGER ISGN( * ), ISAVE( 3 )
154 parameter( itmax = 5 )
156 parameter( zero = 0.0e+0, one = 1.0e+0, two = 2.0e+0 )
160 REAL ALTSGN, ESTOLD, TEMP, XS
165 EXTERNAL isamax, sasum
171 INTRINSIC abs, nint, real
177 x( i ) = one / real( n )
184 GO TO ( 20, 40, 70, 110, 140 )isave( 1 )
196 est = sasum( n, x, 1 )
199 IF( x(i).GE.zero )
THEN
204 isgn( i ) = nint( x( i ) )
214 isave( 2 ) = isamax( n, x, 1 )
223 x( isave( 2 ) ) = one
232 CALL scopy( n, x, 1, v, 1 )
234 est = sasum( n, v, 1 )
236 IF( x(i).GE.zero )
THEN
241 IF( nint( xs ).NE.isgn( i ) )
253 IF( x(i).GE.zero )
THEN
258 isgn( i ) = nint( x( i ) )
269 isave( 2 ) = isamax( n, x, 1 )
270 IF( ( x( jlast ).NE.abs( x( isave( 2 ) ) ) ) .AND.
271 $ ( isave( 3 ).LT.itmax ) )
THEN
272 isave( 3 ) = isave( 3 ) + 1
281 x( i ) = altsgn*( one+real( i-1 ) / real( n-1 ) )
292 temp = two*( sasum( n, x, 1 ) / real( 3*n ) )
293 IF( temp.GT.est )
THEN
294 CALL scopy( n, x, 1, v, 1 )
subroutine scopy(n, sx, incx, sy, incy)
SCOPY
subroutine slacn2(n, v, x, isgn, est, kase, isave)
SLACN2 estimates the 1-norm of a square matrix, using reverse communication for evaluating matrix-vec...