Package org.ejml.dense.row.linsol.qr
Class AdjLinearSolverQr_FDRM
- java.lang.Object
-
- org.ejml.dense.row.linsol.LinearSolverAbstract_FDRM
-
- org.ejml.dense.row.linsol.qr.LinearSolverQr_FDRM
-
- org.ejml.dense.row.linsol.qr.AdjLinearSolverQr_FDRM
-
- All Implemented Interfaces:
AdjustableLinearSolver_FDRM,org.ejml.interfaces.linsol.LinearSolver<org.ejml.data.FMatrixRMaj,org.ejml.data.FMatrixRMaj>,org.ejml.interfaces.linsol.LinearSolverDense<org.ejml.data.FMatrixRMaj>
public class AdjLinearSolverQr_FDRM extends LinearSolverQr_FDRM implements AdjustableLinearSolver_FDRM
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_FDRM
maxCols, maxRows, Q, R
-
Fields inherited from class org.ejml.dense.row.linsol.LinearSolverAbstract_FDRM
numCols, numRows
-
-
Constructor Summary
Constructors Constructor Description AdjLinearSolverQr_FDRM()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddRowToA(float[] A_row, int rowIndex)Adds a row to A.org.ejml.data.FMatrixRMajgetA()Compute the A matrix from the Q and R matrices.booleanremoveRowFromA(int index)Removes a row from A.voidsetMaxSize(int maxRows, int maxCols)Changes the size of the matrix it can solve for-
Methods inherited from class org.ejml.dense.row.linsol.qr.LinearSolverQr_FDRM
getDecomposer, getDecomposition, getQ, getR, modifiesA, modifiesB, quality, setA, solve
-
Methods inherited from class org.ejml.dense.row.linsol.LinearSolverAbstract_FDRM
_setA, invert
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
setMaxSize
public void setMaxSize(int maxRows, int maxCols)Description copied from class:LinearSolverQr_FDRMChanges the size of the matrix it can solve for- Overrides:
setMaxSizein classLinearSolverQr_FDRM- Parameters:
maxRows- Maximum number of rows in the matrix it will decompose.maxCols- Maximum number of columns in the matrix it will decompose.
-
getA
public org.ejml.data.FMatrixRMaj getA()
Compute the A matrix from the Q and R matrices.- Overrides:
getAin classLinearSolverAbstract_FDRM- Returns:
- The A matrix.
-
addRowToA
public boolean addRowToA(float[] A_row, int rowIndex)Description copied from interface:AdjustableLinearSolver_FDRMAdds a row to A. This has the same effect as creating a new A and callingLinearSolver.setA(S).- Specified by:
addRowToAin interfaceAdjustableLinearSolver_FDRM- 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_FDRMRemoves a row from A. This has the same effect as creating a new A and callingLinearSolver.setA(S).- Specified by:
removeRowFromAin interfaceAdjustableLinearSolver_FDRM- Parameters:
index- which row is removed from A.- Returns:
- If it succeeded or not.
-
-