1DLARTG(1)           LAPACK auxiliary routine (version 3.2)           DLARTG(1)
2
3
4

NAME

6       DLARTG - generate a plane rotation so that   [ CS SN ]
7

SYNOPSIS

9       SUBROUTINE DLARTG( F, G, CS, SN, R )
10
11           DOUBLE         PRECISION CS, F, G, R, SN
12

PURPOSE

14       DLARTG generate a plane rotation so that
15          [ -SN  CS  ]     [ G ]     [ 0 ]
16       This  is  a  slower,  more accurate version of the BLAS1 routine DROTG,
17       with the following other differences:
18          F and G are unchanged on return.
19          If G=0, then CS=1 and SN=0.
20          If F=0 and (G .ne. 0), then CS=0 and SN=1 without doing any
21             floating point operations (saves work in DBDSQR when
22             there are zeros on the diagonal).
23       If F exceeds G in magnitude, CS will be positive.
24

ARGUMENTS

26       F       (input) DOUBLE PRECISION
27               The first component of vector to be rotated.
28
29       G       (input) DOUBLE PRECISION
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) DOUBLE PRECISION
36               The sine of the rotation.
37
38       R       (output) DOUBLE PRECISION
39               The nonzero component of the rotated vector.  This version  has
40               a  few  statements  commented  out  for  thread safety (machine
41               parameters are computed on each entry). 10 feb 03, SJH.
42
43
44
45 LAPACK auxiliary routine (versionNo3v.e2m)ber 2008                       DLARTG(1)
Impressum