Package org.ejml.dense.row.linsol
Interface AdjustableLinearSolver_DDRM
- All Superinterfaces:
LinearSolver<DMatrixRMaj,
,DMatrixRMaj> LinearSolverDense<DMatrixRMaj>
- All Known Implementing Classes:
AdjLinearSolverQr_DDRM
In many situations solutions to linear systems that share many of the same data points are needed.
This can happen when solving using the most recent data or when rejecting outliers. In these situations
it is possible to solve these related systems much faster than solving the entire data set again.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addRowToA
(double[] A_row, int rowIndex) Adds a row to A.boolean
removeRowFromA
(int index) Removes a row from A.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
-
Method Details
-
addRowToA
boolean addRowToA(double[] A_row, int rowIndex) Adds a row to A. This has the same effect as creating a new A and callingLinearSolver.setA(S)
.- Parameters:
A_row
- The row in A.rowIndex
- Where the row appears in A.- Returns:
- if it succeeded or not.
-
removeRowFromA
boolean removeRowFromA(int index) Removes a row from A. This has the same effect as creating a new A and callingLinearSolver.setA(S)
.- Parameters:
index
- which row is removed from A.- Returns:
- If it succeeded or not.
-