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 )