115 SUBROUTINE clacon( N, V, X, EST, KASE )
127 COMPLEX V( n ), X( n )
134 parameter ( itmax = 5 )
136 parameter ( one = 1.0e0, two = 2.0e0 )
138 parameter ( czero = ( 0.0e0, 0.0e0 ),
139 $ cone = ( 1.0e0, 0.0e0 ) )
142 INTEGER I, ITER, J, JLAST, JUMP
143 REAL ABSXI, ALTSGN, ESTOLD, SAFMIN, TEMP
148 EXTERNAL icmax1, scsum1, slamch
154 INTRINSIC abs, aimag, cmplx, real
161 safmin = slamch(
'Safe minimum' )
164 x( i ) = cmplx( one /
REAL( N ) )
171 GO TO ( 20, 40, 70, 90, 120 )jump
183 est = scsum1( n, x, 1 )
186 absxi = abs( x( i ) )
187 IF( absxi.GT.safmin )
THEN
188 x( i ) = cmplx(
REAL( X( I ) ) / ABSXI,
189 $ aimag( x( i ) ) / absxi )
202 j = icmax1( n, x, 1 )
220 CALL ccopy( n, x, 1, v, 1 )
222 est = scsum1( n, v, 1 )
229 absxi = abs( x( i ) )
230 IF( absxi.GT.safmin )
THEN
231 x( i ) = cmplx(
REAL( X( I ) ) / ABSXI,
232 $ aimag( x( i ) ) / absxi )
246 j = icmax1( n, x, 1 )
247 IF( ( abs( x( jlast ) ).NE.abs( x( j ) ) ) .AND.
248 $ ( iter.LT.itmax ) )
THEN
258 x( i ) = cmplx( altsgn*( one+
REAL( I-1 ) /
REAL( N-1 ) ) )
269 temp = two*( scsum1( n, x, 1 ) /
REAL( 3*N ) )
270 IF( temp.GT.est )
THEN
271 CALL ccopy( n, x, 1, v, 1 )
subroutine clacon(N, V, X, EST, KASE)
CLACON estimates the 1-norm of a square matrix, using reverse communication for evaluating matrix-vec...
subroutine ccopy(N, CX, INCX, CY, INCY)
CCOPY