Package org.ejml.dense.row.linsol.chol
Class LinearSolverChol_ZDRM
- java.lang.Object
-
- org.ejml.dense.row.linsol.LinearSolverAbstract_ZDRM
-
- org.ejml.dense.row.linsol.chol.LinearSolverChol_ZDRM
-
- All Implemented Interfaces:
org.ejml.interfaces.linsol.LinearSolver<org.ejml.data.ZMatrixRMaj,org.ejml.data.ZMatrixRMaj>,org.ejml.interfaces.linsol.LinearSolverDense<org.ejml.data.ZMatrixRMaj>
public class LinearSolverChol_ZDRM extends LinearSolverAbstract_ZDRM
-
-
Field Summary
-
Fields inherited from class org.ejml.dense.row.linsol.LinearSolverAbstract_ZDRM
A, numCols, numRows, stride
-
-
Constructor Summary
Constructors Constructor Description LinearSolverChol_ZDRM(CholeskyDecompositionCommon_ZDRM decomposer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.ejml.interfaces.decomposition.CholeskyDecomposition_F64<org.ejml.data.ZMatrixRMaj>getDecomposition()voidinvert(org.ejml.data.ZMatrixRMaj inv)Sets the matrix 'inv' equal to the inverse of the matrix that was decomposed.booleanmodifiesA()booleanmodifiesB()doublequality()booleansetA(org.ejml.data.ZMatrixRMaj A)voidsetToInverseL(double[] a)Sets the matrix to the inverse using a lower triangular matrix.voidsolve(org.ejml.data.ZMatrixRMaj B, org.ejml.data.ZMatrixRMaj X)Using the decomposition, finds the value of 'X' in the linear equation below:
A*x = b
where A has dimension of n by n, x and b are n by m dimension.-
Methods inherited from class org.ejml.dense.row.linsol.LinearSolverAbstract_ZDRM
_setA, getA
-
-
-
-
Constructor Detail
-
LinearSolverChol_ZDRM
public LinearSolverChol_ZDRM(CholeskyDecompositionCommon_ZDRM decomposer)
-
-
Method Detail
-
setA
public boolean setA(org.ejml.data.ZMatrixRMaj A)
-
quality
public double quality()
-
solve
public void solve(org.ejml.data.ZMatrixRMaj B, org.ejml.data.ZMatrixRMaj X)Using the decomposition, finds the value of 'X' in the linear equation below:
A*x = b
where A has dimension of n by n, x and b are n by m dimension.*Note* that 'b' and 'x' can be the same matrix instance.
- Parameters:
B- A matrix that is n by m. Not modified.X- An n by m matrix where the solution is writen to. Modified.
-
invert
public void invert(org.ejml.data.ZMatrixRMaj inv)
Sets the matrix 'inv' equal to the inverse of the matrix that was decomposed.- Specified by:
invertin interfaceorg.ejml.interfaces.linsol.LinearSolverDense<org.ejml.data.ZMatrixRMaj>- Overrides:
invertin classLinearSolverAbstract_ZDRM- Parameters:
inv- Where the value of the inverse will be stored. Modified.
-
setToInverseL
public void setToInverseL(double[] a)
Sets the matrix to the inverse using a lower triangular matrix.
-
modifiesA
public boolean modifiesA()
-
modifiesB
public boolean modifiesB()
-
getDecomposition
public org.ejml.interfaces.decomposition.CholeskyDecomposition_F64<org.ejml.data.ZMatrixRMaj> getDecomposition()
-
-