106 SUBROUTINE claqr1( N, H, LDH, S1, S2, V )
117 COMPLEX H( LDH, * ), V( * )
124 parameter( zero = ( 0.0e0, 0.0e0 ) )
126 parameter( rzero = 0.0e0 )
129 COMPLEX CDUM, H21S, H31S
133 INTRINSIC abs, aimag, real
139 cabs1( cdum ) = abs( real( cdum ) ) + abs( aimag( cdum ) )
145 IF( n.NE.2 .AND. n.NE.3 )
THEN
150 s = cabs1( h( 1, 1 )-s2 ) + cabs1( h( 2, 1 ) )
151 IF( s.EQ.rzero )
THEN
156 v( 1 ) = h21s*h( 1, 2 ) + ( h( 1, 1 )-s1 )*
157 $ ( ( h( 1, 1 )-s2 ) / s )
158 v( 2 ) = h21s*( h( 1, 1 )+h( 2, 2 )-s1-s2 )
161 s = cabs1( h( 1, 1 )-s2 ) + cabs1( h( 2, 1 ) ) +
170 v( 1 ) = ( h( 1, 1 )-s1 )*( ( h( 1, 1 )-s2 ) / s ) +
171 $ h( 1, 2 )*h21s + h( 1, 3 )*h31s
172 v( 2 ) = h21s*( h( 1, 1 )+h( 2, 2 )-s1-s2 ) + h( 2, 3 )*h31s
173 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...