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

NAME

6       DLASV2 - computes the singular value decomposition of a 2-by-2 triangu‐
7       lar matrix  [ F G ]  [ 0 H ]
8

SYNOPSIS

10       SUBROUTINE DLASV2( F, G, H, SSMIN, SSMAX, SNR, CSR, SNL, CSL )
11
12           DOUBLE         PRECISION CSL, CSR, F, G, H, SNL, SNR, SSMAX, SSMIN
13

PURPOSE

15       DLASV2 computes the singular value decomposition of a 2-by-2 triangular
16       matrix
17          [  F   G  ]
18          [   0    H   ].  On return, abs(SSMAX) is the larger singular value,
19       abs(SSMIN) is the smaller singular value, and (CSL,SNL)  and  (CSR,SNR)
20       are  the  left  and  right  singular vectors for abs(SSMAX), giving the
21       decomposition
22          [ CSL  SNL ] [  F   G  ] [ CSR -SNR ]  =  [ SSMAX   0   ]
23          [-SNL  CSL ] [  0   H  ] [ SNR  CSR ]     [  0    SSMIN ].
24

ARGUMENTS

26       F       (input) DOUBLE PRECISION
27               The (1,1) element of the 2-by-2 matrix.
28
29       G       (input) DOUBLE PRECISION
30               The (1,2) element of the 2-by-2 matrix.
31
32       H       (input) DOUBLE PRECISION
33               The (2,2) element of the 2-by-2 matrix.
34
35       SSMIN   (output) DOUBLE PRECISION
36               abs(SSMIN) is the smaller singular value.
37
38       SSMAX   (output) DOUBLE PRECISION
39               abs(SSMAX) is the larger singular value.
40
41       SNL     (output) DOUBLE PRECISION
42               CSL     (output) DOUBLE PRECISION The vector (CSL,  SNL)  is  a
43               unit left singular vector for the singular value abs(SSMAX).
44
45       SNR     (output) DOUBLE PRECISION
46               CSR      (output)  DOUBLE  PRECISION The vector (CSR, SNR) is a
47               unit right singular vector for the singular value abs(SSMAX).
48

FURTHER DETAILS

50       Any input parameter may be aliased with any output parameter.   Barring
51       over/underflow  and  assuming  a guard digit in subtraction, all output
52       quantities are correct to within a few units in the last place (ulps).
53       In IEEE arithmetic, the code works correctly if one matrix  element  is
54       infinite.
55       Overflow  will not occur unless the largest singular value itself over‐
56       flows or is within a few ulps of overflow. (On  machines  with  partial
57       overflow,  like  the  Cray,  overflow may occur if the largest singular
58       value is within a factor of 2 of overflow.)
59       Underflow is harmless if underflow is gradual. Otherwise,  results  may
60       correspond  to  a  matrix  modified  by  perturbations of size near the
61       underflow threshold.
62
63
64
65 LAPACK auxiliary routine (versionNo3v.e2m)ber 2008                       DLASV2(1)
Impressum