Package org.ejml.dense.row.linsol.qr
Class AdjLinearSolverQr_DDRM
java.lang.Object
org.ejml.dense.row.linsol.LinearSolverAbstract_DDRM
org.ejml.dense.row.linsol.qr.LinearSolverQr_DDRM
org.ejml.dense.row.linsol.qr.AdjLinearSolverQr_DDRM
- All Implemented Interfaces:
AdjustableLinearSolver_DDRM
,LinearSolver<DMatrixRMaj,
,DMatrixRMaj> LinearSolverDense<DMatrixRMaj>
public class AdjLinearSolverQr_DDRM
extends LinearSolverQr_DDRM
implements AdjustableLinearSolver_DDRM
A solver for QR decomposition that can efficiently modify the previous decomposition when
data is added or removed.
-
Field Summary
Fields inherited from class org.ejml.dense.row.linsol.qr.LinearSolverQr_DDRM
maxCols, maxRows, Q, R
Fields inherited from class org.ejml.dense.row.linsol.LinearSolverAbstract_DDRM
numCols, numRows
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addRowToA
(double[] A_row, int rowIndex) Adds a row to A.getA()
Compute the A matrix from the Q and R matrices.boolean
removeRowFromA
(int index) Removes a row from A.void
setMaxSize
(int maxRows, int maxCols) Changes the size of the matrix it can solve forMethods inherited from class org.ejml.dense.row.linsol.qr.LinearSolverQr_DDRM
getDecomposer, getDecomposition, getQ, getR, modifiesA, modifiesB, quality, setA, solve
Methods inherited from class org.ejml.dense.row.linsol.LinearSolverAbstract_DDRM
_setA, invert
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ejml.interfaces.linsol.LinearSolver
getDecomposition, modifiesA, modifiesB, quality, setA, solve
Methods inherited from interface org.ejml.interfaces.linsol.LinearSolverDense
invert
-
Constructor Details
-
AdjLinearSolverQr_DDRM
public AdjLinearSolverQr_DDRM()
-
-
Method Details
-
setMaxSize
public void setMaxSize(int maxRows, int maxCols) Description copied from class:LinearSolverQr_DDRM
Changes the size of the matrix it can solve for- Overrides:
setMaxSize
in classLinearSolverQr_DDRM
- Parameters:
maxRows
- Maximum number of rows in the matrix it will decompose.maxCols
- Maximum number of columns in the matrix it will decompose.
-
getA
Compute the A matrix from the Q and R matrices.- Overrides:
getA
in classLinearSolverAbstract_DDRM
- Returns:
- The A matrix.
-
addRowToA
public boolean addRowToA(double[] A_row, int rowIndex) Description copied from interface:AdjustableLinearSolver_DDRM
Adds a row to A. This has the same effect as creating a new A and callingLinearSolver.setA(S)
.- Specified by:
addRowToA
in interfaceAdjustableLinearSolver_DDRM
- Parameters:
A_row
- The row in A.rowIndex
- Where the row appears in A.- Returns:
- if it succeeded or not.
-
removeRowFromA
public boolean removeRowFromA(int index) Description copied from interface:AdjustableLinearSolver_DDRM
Removes a row from A. This has the same effect as creating a new A and callingLinearSolver.setA(S)
.- Specified by:
removeRowFromA
in interfaceAdjustableLinearSolver_DDRM
- Parameters:
index
- which row is removed from A.- Returns:
- If it succeeded or not.
-