Package org.ejml.dense.row.linsol.qr
Class LinearSolverQrpHouseCol_DDRM
java.lang.Object
org.ejml.dense.row.linsol.LinearSolverAbstract_DDRM
org.ejml.dense.row.linsol.qr.BaseLinearSolverQrp_DDRM
org.ejml.dense.row.linsol.qr.LinearSolverQrpHouseCol_DDRM
- All Implemented Interfaces:
LinearSolver<DMatrixRMaj,
,DMatrixRMaj> LinearSolverDense<DMatrixRMaj>
Performs a pseudo inverse solver using the QRColPivDecompositionHouseholderColumn_DDRM
decomposition
directly. For details on how the pseudo inverse is computed see BaseLinearSolverQrp_DDRM
.
-
Field Summary
Fields inherited from class org.ejml.dense.row.linsol.qr.BaseLinearSolverQrp_DDRM
I, internalSolver, norm2Solution, R, R11, rank, Y
Fields inherited from class org.ejml.dense.row.linsol.LinearSolverAbstract_DDRM
A, numCols, numRows
-
Constructor Summary
ConstructorDescriptionLinearSolverQrpHouseCol_DDRM
(QRColPivDecompositionHouseholderColumn_DDRM decomposition, boolean norm2Solution) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the passed in matrix toLinearSolver.setA(Matrix)
is modified.boolean
Returns true if the passed in 'B' matrix toLinearSolver.solve(Matrix, Matrix)
is modified.void
solve
(DMatrixRMaj B, DMatrixRMaj X) Solves for X in the linear system, A*X=B.Methods inherited from class org.ejml.dense.row.linsol.qr.BaseLinearSolverQrp_DDRM
getDecomposition, invert, quality, setA, upgradeSolution
Methods inherited from class org.ejml.dense.row.linsol.LinearSolverAbstract_DDRM
_setA, getA
-
Constructor Details
-
LinearSolverQrpHouseCol_DDRM
public LinearSolverQrpHouseCol_DDRM(QRColPivDecompositionHouseholderColumn_DDRM decomposition, boolean norm2Solution)
-
-
Method Details
-
solve
Description copied from interface:LinearSolver
Solves for X in the linear system, A*X=B.
In some implementations 'B' and 'X' can be the same instance of a variable. Call
LinearSolver.modifiesB()
to determine if 'B' is modified.- Parameters:
B
- A matrix ℜ m × p. Might be modified.X
- A matrix ℜ n × p, where the solution is written to. Modified.
-
modifiesA
public boolean modifiesA()Description copied from interface:LinearSolver
Returns true if the passed in matrix toLinearSolver.setA(Matrix)
is modified.- Returns:
- true if A is modified in setA().
-
modifiesB
public boolean modifiesB()Description copied from interface:LinearSolver
Returns true if the passed in 'B' matrix toLinearSolver.solve(Matrix, Matrix)
is modified.- Returns:
- true if B is modified in solve(B,X).
-