108 SUBROUTINE claqr1( N, H, LDH, S1, S2, V )
120 COMPLEX H( ldh, * ), V( * )
127 parameter ( zero = ( 0.0e0, 0.0e0 ) )
129 parameter ( rzero = 0.0e0 )
132 COMPLEX CDUM, H21S, H31S
136 INTRINSIC abs, aimag, real
142 cabs1( cdum ) = abs(
REAL( CDUM ) ) + abs( AIMAG( cdum ) )
146 s = cabs1( h( 1, 1 )-s2 ) + cabs1( h( 2, 1 ) )
147 IF( s.EQ.rzero )
THEN
152 v( 1 ) = h21s*h( 1, 2 ) + ( h( 1, 1 )-s1 )*
153 $ ( ( h( 1, 1 )-s2 ) / s )
154 v( 2 ) = h21s*( h( 1, 1 )+h( 2, 2 )-s1-s2 )
157 s = cabs1( h( 1, 1 )-s2 ) + cabs1( h( 2, 1 ) ) +
166 v( 1 ) = ( h( 1, 1 )-s1 )*( ( h( 1, 1 )-s2 ) / s ) +
167 $ h( 1, 2 )*h21s + h( 1, 3 )*h31s
168 v( 2 ) = h21s*( h( 1, 1 )+h( 2, 2 )-s1-s2 ) + h( 2, 3 )*h31s
169 v( 3 ) = h31s*( h( 1, 1 )+h( 3, 3 )-s1-s2 ) + h21s*h( 3, 2 )
subroutine claqr1(N, H, LDH, S1, S2, V)
CLAQR1 sets a scalar multiple of the first column of the product of 2-by-2 or 3-by-3 matrix H and spe...