1SLANV2(1) LAPACK driver routine (version 3.2) SLANV2(1)
2
3
4
6 SLANV2 - computes the Schur factorization of a real 2-by-2 nonsymmetric
7 matrix in standard form
8
10 SUBROUTINE SLANV2( A, B, C, D, RT1R, RT1I, RT2R, RT2I, CS, SN )
11
12 REAL A, B, C, CS, D, RT1I, RT1R, RT2I, RT2R, SN
13
15 SLANV2 computes the Schur factorization of a real 2-by-2 nonsymmetric
16 matrix in standard form:
17 [ A B ] = [ CS -SN ] [ AA BB ] [ CS SN ]
18 [ C D ] [ SN CS ] [ CC DD ] [-SN CS ]
19 where either
20 1) CC = 0 so that AA and DD are real eigenvalues of the matrix, or 2)
21 AA = DD and BB*CC < 0, so that AA + or - sqrt(BB*CC) are complex conju‐
22 gate eigenvalues.
23
25 A (input/output) REAL
26 B (input/output) REAL C (input/output) REAL D
27 (input/output) REAL On entry, the elements of the input matrix.
28 On exit, they are overwritten by the elements of the standard‐
29 ised Schur form.
30
31 RT1R (output) REAL
32 RT1I (output) REAL RT2R (output) REAL RT2I (output)
33 REAL The real and imaginary parts of the eigenvalues. If the
34 eigenvalues are a complex conjugate pair, RT1I > 0.
35
36 CS (output) REAL
37 SN (output) REAL Parameters of the rotation matrix.
38
40 Modified by V. Sima, Research Institute for Informatics, Bucharest,
41 Romania, to reduce the risk of cancellation errors,
42 when computing real eigenvalues, and to ensure, if possible, that
43 abs(RT1R) >= abs(RT2R).
44
45
46
47 LAPACK driver routine (version 3.N2o)vember 2008 SLANV2(1)