1CLARTG(1) LAPACK auxiliary routine (version 3.2) CLARTG(1)
2
3
4
6 CLARTG - generates a plane rotation so that [ CS SN ] [ F ] [ R ] [
7 __ ]
8
10 SUBROUTINE CLARTG( F, G, CS, SN, R )
11
12 REAL CS
13
14 COMPLEX F, G, R, SN
15
17 CLARTG generates a plane rotation so that
18 [ -SN CS ] [ G ] [ 0 ]
19 This is a faster version of the BLAS1 routine CROTG, 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
27 The first component of vector to be rotated.
28
29 G (input) COMPLEX
30 The second component of vector to be rotated.
31
32 CS (output) REAL
33 The cosine of the rotation.
34
35 SN (output) COMPLEX
36 The sine of the rotation.
37
38 R (output) COMPLEX
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 CLARTG(1)