public class QRAlgorithm extends java.lang.Object implements Spectrum
FrancisQRStep), as described in Golub and Van Loan.| Constructor and Description |
|---|
QRAlgorithm(Matrix A)
Run the QR algorithm on a square matrix.
|
QRAlgorithm(Matrix A,
int maxIterations,
double epsilon)
Run the QR algorithm on a square matrix.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Number> |
getEigenvalues()
Get all the eigenvalues.
|
Matrix |
Q()
Get the Q matrix as in the real Schur canonical form Q'MQ = T.
|
Matrix |
T()
Get the T matrix as in the real Schur canonical form Q'MQ = T.
|
public QRAlgorithm(Matrix A, int maxIterations, double epsilon)
A - a square matrixmaxIterations - the maximum number of iterationsepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0java.lang.IllegalArgumentException - if A is not squarepublic QRAlgorithm(Matrix A)
A - a matrixjava.lang.IllegalArgumentException - if A is not squarepublic java.util.List<java.lang.Number> getEigenvalues()
getEigenvalues in interface Spectrumpublic Matrix Q()
public Matrix T()