104 SUBROUTINE claqr1( N, H, LDH, S1, S2, V )
115 COMPLEX H( LDH, * ), V( * )
122 parameter( zero = ( 0.0e0, 0.0e0 ) )
124 parameter( rzero = 0.0e0 )
127 COMPLEX CDUM, H21S, H31S
131 INTRINSIC abs, aimag, real
137 cabs1( cdum ) = abs( real( cdum ) ) + abs( aimag( cdum ) )
143 IF( n.NE.2 .AND. n.NE.3 )
THEN
148 s = cabs1( h( 1, 1 )-s2 ) + cabs1( h( 2, 1 ) )
149 IF( s.EQ.rzero )
THEN
154 v( 1 ) = h21s*h( 1, 2 ) + ( h( 1, 1 )-s1 )*
155 $ ( ( h( 1, 1 )-s2 ) / s )
156 v( 2 ) = h21s*( h( 1, 1 )+h( 2, 2 )-s1-s2 )
159 s = cabs1( h( 1, 1 )-s2 ) + cabs1( h( 2, 1 ) ) +
168 v( 1 ) = ( h( 1, 1 )-s1 )*( ( h( 1, 1 )-s2 ) / s ) +
169 $ h( 1, 2 )*h21s + h( 1, 3 )*h31s
170 v( 2 ) = h21s*( h( 1, 1 )+h( 2, 2 )-s1-s2 ) + h( 2, 3 )*h31s
171 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...