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 )