106 SUBROUTINE zlaqr1( N, H, LDH, S1, S2, V )
117 COMPLEX*16 H( LDH, * ), V( * )
124 parameter( zero = ( 0.0d0, 0.0d0 ) )
125 DOUBLE PRECISION RZERO
126 parameter( rzero = 0.0d0 )
129 COMPLEX*16 CDUM, H21S, H31S
133 INTRINSIC abs, dble, dimag
136 DOUBLE PRECISION CABS1
139 cabs1( cdum ) = abs( dble( cdum ) ) + abs( dimag( 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 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...