116 SUBROUTINE claesy( A, B, C, RT1, RT2, EVSCAL, CS1, SN1 )
124 COMPLEX A, B, C, CS1, EVSCAL, RT1, RT2, SN1
131 parameter ( zero = 0.0e0 )
133 parameter ( one = 1.0e0 )
135 parameter ( cone = ( 1.0e0, 0.0e0 ) )
137 parameter ( half = 0.5e0 )
139 parameter ( thresh = 0.1e0 )
142 REAL BABS, EVNORM, TABS, Z
146 INTRINSIC abs, max, sqrt
154 IF( abs( b ).EQ.zero )
THEN
157 IF( abs( rt1 ).LT.abs( rt2 ) )
THEN
181 z = max( babs, tabs )
183 $ t = z*sqrt( ( t / z )**2+( b / z )**2 )
190 IF( abs( rt1 ).LT.abs( rt2 ) )
THEN
203 IF( tabs.GT.one )
THEN
204 t = tabs*sqrt( ( one / tabs )**2+( sn1 / tabs )**2 )
206 t = sqrt( cone+sn1*sn1 )
209 IF( evnorm.GE.thresh )
THEN
subroutine claesy(A, B, C, RT1, RT2, EVSCAL, CS1, SN1)
CLAESY computes the eigenvalues and eigenvectors of a 2-by-2 complex symmetric matrix.