public class QRAlgorithm extends Object implements Spectrum
FrancisQRStep
), as described in Golub and Van Loan.Constructor and Description |
---|
QRAlgorithm(Matrix A)
Runs the QR algorithm on a square matrix.
|
QRAlgorithm(Matrix A,
double epsilon)
Runs the QR algorithm on a square matrix.
|
QRAlgorithm(Matrix A,
double epsilon,
int maxIterations)
Runs the QR algorithm on a square matrix.
|
Modifier and Type | Method and Description |
---|---|
List<Number> |
getEigenvalues()
Get all the eigenvalues.
|
List<Vector> |
getEigenVectors() |
Matrix |
Q()
Gets the Q matrix as in the real Schur canonical form Q'AQ = T.
|
List<Matrix> |
Qs()
Gets the list of Qi's produced in the process of the QR
algorithm (if
keepQs is set to true ). |
Matrix |
T() |
public QRAlgorithm(Matrix A)
A
- a matrixIllegalArgumentException
- if A is not squarepublic QRAlgorithm(Matrix A, double epsilon)
A
- a square matrixepsilon
- a precision parameter: when a number |x| ≤ ε, it is
considered 0public QRAlgorithm(Matrix A, double epsilon, int maxIterations)
A
- a square matrixepsilon
- a precision parameter: when a number |x| ≤ ε, it is
considered 0maxIterations
- the maximum number of iterationsIllegalArgumentException
- if A is not squarepublic List<Number> getEigenvalues()
getEigenvalues
in interface Spectrum
public List<Matrix> Qs()
keepQs
is set to true
).public Matrix Q()
public Matrix T()
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.