Package org.ejml.dense.row.linsol
Class LinearSolverAbstract_DDRM
java.lang.Object
org.ejml.dense.row.linsol.LinearSolverAbstract_DDRM
- All Implemented Interfaces:
LinearSolver<DMatrixRMaj,
,DMatrixRMaj> LinearSolverDense<DMatrixRMaj>
- Direct Known Subclasses:
BaseLinearSolverQrp_DDRM
,LinearSolverChol_DDRM
,LinearSolverCholLDL_DDRM
,LinearSolverLuBase_DDRM
,LinearSolverQr_DDRM
,LinearSolverQrHouse_DDRM
,LinearSolverQrHouseCol_DDRM
,LinearSolverQrHouseTran_DDRM
public abstract class LinearSolverAbstract_DDRM
extends Object
implements LinearSolverDense<DMatrixRMaj>
An abstract class that provides some common functionality and a default implementation of invert that uses the solve function of the child class.
The extending class must explicity call _setA(DMatrixRMaj)
inside of its LinearSolver.setA(S)
function.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
_setA
(DMatrixRMaj A) @Nullable DMatrixRMaj
getA()
void
invert
(DMatrixRMaj A_inv) Computes the inverse of of the 'A' matrix passed intoLinearSolver.setA(Matrix)
and writes the results to the provided matrix.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
-
Field Details
-
A
-
numRows
protected int numRows -
numCols
protected int numCols
-
-
Constructor Details
-
LinearSolverAbstract_DDRM
public LinearSolverAbstract_DDRM()
-
-
Method Details
-
getA
-
_setA
-
invert
Description copied from interface:LinearSolverDense
Computes the inverse of of the 'A' matrix passed intoLinearSolver.setA(Matrix)
and writes the results to the provided matrix. If 'A_inv' needs to be different from 'A' is implementation dependent.- Specified by:
invert
in interfaceLinearSolverDense<DMatrixRMaj>
- Parameters:
A_inv
- Where the inverted matrix saved. Modified.
-