public class QrHouseHolderSolver_DDRB
extends java.lang.Object
implements org.ejml.interfaces.linsol.LinearSolverDense<org.ejml.data.DMatrixRBlock>
A solver for QRDecompositionHouseholder_DDRB. Systems are solved for using the standard
QR decomposition method, sketched below.
A = Q*R
A*x = b
Q*R*x = b
R*x = y = QTb
x = R-1y
Where A is the m by n matrix being decomposed. Q is an orthogonal matrix. R is upper triangular matrix.
| Modifier and Type | Field and Description |
|---|---|
protected QRDecompositionHouseholder_DDRB |
decomposer |
protected org.ejml.data.DMatrixRBlock |
QR |
| Constructor and Description |
|---|
QrHouseHolderSolver_DDRB() |
| Modifier and Type | Method and Description |
|---|---|
org.ejml.interfaces.decomposition.QRDecomposition<org.ejml.data.DMatrixRBlock> |
getDecomposition() |
void |
invert(org.ejml.data.DMatrixRBlock A_inv)
Invert by solving for against an identity matrix.
|
boolean |
modifiesA() |
boolean |
modifiesB() |
double |
quality()
Computes the quality using diagonal elements the triangular R matrix in the QR decomposition.
|
boolean |
setA(org.ejml.data.DMatrixRBlock A)
Computes the QR decomposition of A and store the results in A.
|
void |
solve(org.ejml.data.DMatrixRBlock B,
org.ejml.data.DMatrixRBlock X) |
protected QRDecompositionHouseholder_DDRB decomposer
protected org.ejml.data.DMatrixRBlock QR
public boolean setA(org.ejml.data.DMatrixRBlock A)
setA in interface org.ejml.interfaces.linsol.LinearSolver<org.ejml.data.DMatrixRBlock,org.ejml.data.DMatrixRBlock>A - The A matrix in the linear equation. Modified. Reference saved.public double quality()
quality in interface org.ejml.interfaces.linsol.LinearSolver<org.ejml.data.DMatrixRBlock,org.ejml.data.DMatrixRBlock>public void solve(org.ejml.data.DMatrixRBlock B,
org.ejml.data.DMatrixRBlock X)
solve in interface org.ejml.interfaces.linsol.LinearSolver<org.ejml.data.DMatrixRBlock,org.ejml.data.DMatrixRBlock>public void invert(org.ejml.data.DMatrixRBlock A_inv)
invert in interface org.ejml.interfaces.linsol.LinearSolverDense<org.ejml.data.DMatrixRBlock>A_inv - Where the inverted matrix saved. Modified.public boolean modifiesA()
modifiesA in interface org.ejml.interfaces.linsol.LinearSolver<org.ejml.data.DMatrixRBlock,org.ejml.data.DMatrixRBlock>public boolean modifiesB()
modifiesB in interface org.ejml.interfaces.linsol.LinearSolver<org.ejml.data.DMatrixRBlock,org.ejml.data.DMatrixRBlock>public org.ejml.interfaces.decomposition.QRDecomposition<org.ejml.data.DMatrixRBlock> getDecomposition()
getDecomposition in interface org.ejml.interfaces.linsol.LinearSolver<org.ejml.data.DMatrixRBlock,org.ejml.data.DMatrixRBlock>