120 SUBROUTINE dlaqr1( N, H, LDH, SR1, SI1, SR2, SI2, V )
127 DOUBLE PRECISION SI1, SI2, SR1, SR2
131 DOUBLE PRECISION H( LDH, * ), V( * )
137 DOUBLE PRECISION ZERO
138 parameter( zero = 0.0d0 )
141 DOUBLE PRECISION H21S, H31S, S
150 IF( n.NE.2 .AND. n.NE.3 )
THEN
155 s = abs( h( 1, 1 )-sr2 ) + abs( si2 ) + abs( h( 2, 1 ) )
161 v( 1 ) = h21s*h( 1, 2 ) + ( h( 1, 1 )-sr1 )*
162 $ ( ( h( 1, 1 )-sr2 ) / s ) - si1*( si2 / s )
163 v( 2 ) = h21s*( h( 1, 1 )+h( 2, 2 )-sr1-sr2 )
166 s = abs( h( 1, 1 )-sr2 ) + abs( si2 ) + abs( h( 2, 1 ) ) +
175 v( 1 ) = ( h( 1, 1 )-sr1 )*( ( h( 1, 1 )-sr2 ) / s ) -
176 $ si1*( si2 / s ) + h( 1, 2 )*h21s + h( 1, 3 )*h31s
177 v( 2 ) = h21s*( h( 1, 1 )+h( 2, 2 )-sr1-sr2 ) +
179 v( 3 ) = h31s*( h( 1, 1 )+h( 3, 3 )-sr1-sr2 ) +
subroutine dlaqr1(n, h, ldh, sr1, si1, sr2, si2, v)
DLAQR1 sets a scalar multiple of the first column of the product of 2-by-2 or 3-by-3 matrix H and spe...