108 SUBROUTINE zlaqr1( N, H, LDH, S1, S2, V )
120 COMPLEX*16 h( ldh, * ), v( * )
127 parameter( zero = ( 0.0d0, 0.0d0 ) )
128 DOUBLE PRECISION rzero
129 parameter( rzero = 0.0d0 )
132 COMPLEX*16 cdum, h21s, h31s
136 INTRINSIC abs, dble, dimag
139 DOUBLE PRECISION cabs1
142 cabs1( cdum ) = abs( dble( cdum ) ) + abs( dimag( 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 )