1ZLARTG(1) LAPACK auxiliary routine (version 3.2) ZLARTG(1)
2
3
4
6 ZLARTG - generates a plane rotation so that [ CS SN ] [ F ] [ R ] [
7 __ ]
8
10 SUBROUTINE ZLARTG( F, G, CS, SN, R )
11
12 DOUBLE PRECISION CS
13
14 COMPLEX*16 F, G, R, SN
15
17 ZLARTG generates a plane rotation so that
18 [ -SN CS ] [ G ] [ 0 ]
19 This is a faster version of the BLAS1 routine ZROTG, except for the
20 following differences:
21 F and G are unchanged on return.
22 If G=0, then CS=1 and SN=0.
23 If F=0, then CS=0 and SN is chosen so that R is real.
24
26 F (input) COMPLEX*16
27 The first component of vector to be rotated.
28
29 G (input) COMPLEX*16
30 The second component of vector to be rotated.
31
32 CS (output) DOUBLE PRECISION
33 The cosine of the rotation.
34
35 SN (output) COMPLEX*16
36 The sine of the rotation.
37
38 R (output) COMPLEX*16
39 The nonzero component of the rotated vector.
40
42 3-5-96 - Modified with a new algorithm by W. Kahan and J. Demmel This
43 version has a few statements commented out for thread safety (machine
44 parameters are computed on each entry). 10 feb 03, SJH.
45
46
47
48 LAPACK auxiliary routine (versionNo3v.e2m)ber 2008 ZLARTG(1)