1 subroutine zrotg
(ca
,cb
,c
,s
)
4 double precision norm
,scale
6 if (cdabs
(ca
) .ne
. 0.0d0
) go to 10
12 scale
= cdabs
(ca
) + cdabs
(cb
)
13 norm
= scale*dsqrt
((cdabs
(ca
/dcmplx
(scale
,0.0d0
)))**2 +
14 * (cdabs
(cb
/dcmplx
(scale
,0.0d0
)))**2)
17 s
= alpha
* dconjg
(cb
) / norm