Purpose
=======
DLAEV2 computes the eigendecomposition of a 2-by-2 symmetric matrix
[ A B ]
[ B C ].
On return, RT1 is the eigenvalue of larger absolute value, RT2 is the
eigenvalue of smaller absolute value, and (CS1,SN1) is the unit right
eigenvector for RT1, giving the decomposition
[ CS1 SN1 ] [ A B ] [ CS1 -SN1 ] = [ RT1 0 ]
[-SN1 CS1 ] [ B C ] [ SN1 CS1 ] [ 0 RT2 ].
Namespace: DotNumerics.LinearAlgebra.CSLapackAssembly: DWSIM.MathOps.DotNumerics (in DWSIM.MathOps.DotNumerics.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public void Run(
double A,
double B,
double C,
ref double RT1,
ref double RT2,
ref double CS1,
ref double SN1
)
Public Sub Run (
A As Double,
B As Double,
C As Double,
ByRef RT1 As Double,
ByRef RT2 As Double,
ByRef CS1 As Double,
ByRef SN1 As Double
)
Request Example
View SourceParameters
- A Double
-
(input) DOUBLE PRECISION
The (1,1) element of the 2-by-2 matrix.
- B Double
-
(input) DOUBLE PRECISION
The (1,2) element and the conjugate of the (2,1) element of
the 2-by-2 matrix.
- C Double
-
(input) DOUBLE PRECISION
The (2,2) element of the 2-by-2 matrix.
- RT1 Double
-
(output) DOUBLE PRECISION
The eigenvalue of larger absolute value.
- RT2 Double
-
(output) DOUBLE PRECISION
The eigenvalue of smaller absolute value.
- CS1 Double
-
(output) DOUBLE PRECISION
- SN1 Double
-
(output) DOUBLE PRECISION
The vector (CS1, SN1) is a unit right eigenvector for RT1.
See Also