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 )
subroutine zlaqr1(N, H, LDH, S1, S2, V)
ZLAQR1 sets a scalar multiple of the first column of the product of 2-by-2 or 3-by-3 matrix H and spe...