1DLAEV2(1) LAPACK auxiliary routine (version 3.1) DLAEV2(1)
2
3
4
6 DLAEV2 - the eigendecomposition of a 2-by-2 symmetric matrix [ A B ]
7 [ B C ]
8
10 SUBROUTINE DLAEV2( A, B, C, RT1, RT2, CS1, SN1 )
11
12 DOUBLE PRECISION A, B, C, CS1, RT1, RT2, SN1
13
15 DLAEV2 computes the eigendecomposition of a 2-by-2 symmetric matrix
16 [ A B ]
17 [ B C ]. On return, RT1 is the eigenvalue of larger absolute
18 value, RT2 is the eigenvalue of smaller absolute value, and (CS1,SN1)
19 is the unit right eigenvector for RT1, giving the decomposition
20
21 [ CS1 SN1 ] [ A B ] [ CS1 -SN1 ] = [ RT1 0 ]
22 [-SN1 CS1 ] [ B C ] [ SN1 CS1 ] [ 0 RT2 ].
23
24
26 A (input) DOUBLE PRECISION
27 The (1,1) element of the 2-by-2 matrix.
28
29 B (input) DOUBLE PRECISION
30 The (1,2) element and the conjugate of the (2,1) element of the
31 2-by-2 matrix.
32
33 C (input) DOUBLE PRECISION
34 The (2,2) element of the 2-by-2 matrix.
35
36 RT1 (output) DOUBLE PRECISION
37 The eigenvalue of larger absolute value.
38
39 RT2 (output) DOUBLE PRECISION
40 The eigenvalue of smaller absolute value.
41
42 CS1 (output) DOUBLE PRECISION
43 SN1 (output) DOUBLE PRECISION The vector (CS1, SN1) is a
44 unit right eigenvector for RT1.
45
47 RT1 is accurate to a few ulps barring over/underflow.
48
49 RT2 may be inaccurate if there is massive cancellation in the determi‐
50 nant A*C-B*B; higher precision or correctly rounded or correctly trun‐
51 cated arithmetic would be needed to compute RT2 accurately in all
52 cases.
53
54 CS1 and SN1 are accurate to a few ulps barring over/underflow.
55
56 Overflow is possible only if RT1 is within a factor of 5 of overflow.
57 Underflow is harmless if the input data is 0 or exceeds
58 underflow_threshold / macheps.
59
60
61
62
63 LAPACK auxiliary routine (versionNo3v.e1m)ber 2006 DLAEV2(1)