org.ejml.alg.dense.linsol.qr
Class AdjLinearSolverQr_D64
- java.lang.Object
-
- org.ejml.alg.dense.linsol.LinearSolverAbstract_D64
-
- org.ejml.alg.dense.linsol.qr.LinearSolverQr_D64
-
- org.ejml.alg.dense.linsol.qr.AdjLinearSolverQr_D64
-
- All Implemented Interfaces:
- AdjustableLinearSolver, LinearSolver<DenseMatrix64F>
public class AdjLinearSolverQr_D64 extends LinearSolverQr_D64 implements AdjustableLinearSolver
A solver for QR decomposition that can efficiently modify the previous decomposition when data is added or removed.
-
-
Constructor Summary
Constructors Constructor and Description AdjLinearSolverQr_D64()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanaddRowToA(double[] A_row, int rowIndex)Adds a row to A.DenseMatrix64FgetA()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.alg.dense.linsol.qr.LinearSolverQr_D64
getDecomposer, getDecomposition, getQ, getR, modifiesA, modifiesB, quality, setA, solve
-
Methods inherited from class org.ejml.alg.dense.linsol.LinearSolverAbstract_D64
invert
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ejml.interfaces.linsol.LinearSolver
getDecomposition, invert, modifiesA, modifiesB, quality, setA, solve
-
-
-
-
Method Detail
-
setMaxSize
public void setMaxSize(int maxRows, int maxCols)Description copied from class:LinearSolverQr_D64Changes the size of the matrix it can solve for- Overrides:
setMaxSizein classLinearSolverQr_D64- 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 DenseMatrix64F getA()
Compute the A matrix from the Q and R matrices.- Overrides:
getAin classLinearSolverAbstract_D64- Returns:
- The A matrix.
-
addRowToA
public boolean addRowToA(double[] A_row, int rowIndex)Description copied from interface:AdjustableLinearSolverAdds a row to A. This has the same effect as creating a new A and callingLinearSolver.setA(T).- Specified by:
addRowToAin interfaceAdjustableLinearSolver- 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:AdjustableLinearSolverRemoves a row from A. This has the same effect as creating a new A and callingLinearSolver.setA(T).- Specified by:
removeRowFromAin interfaceAdjustableLinearSolver- Parameters:
index- which row is removed from A.- Returns:
- If it succeeded or not.
-
-
DMelt 3.0 © DataMelt by jWork.ORG