public abstract class CholeskyDecompositionCommon_FDRM
extends java.lang.Object
implements org.ejml.interfaces.decomposition.CholeskyDecomposition_F32<org.ejml.data.FMatrixRMaj>
This is an abstract class for a Cholesky decomposition. It provides the solvers, but the actual decomposition is provided in other classes.
CholeskyDecomposition_F32
Modifier and Type | Field and Description |
---|---|
protected org.ejml.data.Complex_F32 |
det |
protected boolean |
lower |
protected int |
maxWidth |
protected int |
n |
protected float[] |
t |
protected org.ejml.data.FMatrixRMaj |
T |
protected float[] |
vv |
Constructor and Description |
---|
CholeskyDecompositionCommon_FDRM(boolean lower)
Specifies if a lower or upper variant should be constructed.
|
Modifier and Type | Method and Description |
---|---|
float[] |
_getVV() |
org.ejml.data.Complex_F32 |
computeDeterminant() |
boolean |
decompose(org.ejml.data.FMatrixRMaj mat)
Performs Choleksy decomposition on the provided matrix.
|
protected abstract boolean |
decomposeLower()
Performs an lower triangular decomposition.
|
protected abstract boolean |
decomposeUpper()
Performs an upper triangular decomposition.
|
org.ejml.data.FMatrixRMaj |
getT()
Returns the triangular matrix from the decomposition.
|
org.ejml.data.FMatrixRMaj |
getT(org.ejml.data.FMatrixRMaj T) |
boolean |
inputModified() |
boolean |
isLower()
If true the decomposition was for a lower triangular matrix.
|
void |
setExpectedMaxSize(int numRows,
int numCols) |
protected int maxWidth
protected int n
protected org.ejml.data.FMatrixRMaj T
protected float[] t
protected float[] vv
protected boolean lower
protected org.ejml.data.Complex_F32 det
public CholeskyDecompositionCommon_FDRM(boolean lower)
lower
- should a lower or upper triangular matrix be used.public void setExpectedMaxSize(int numRows, int numCols)
public boolean isLower()
isLower
in interface org.ejml.interfaces.decomposition.CholeskyDecomposition<org.ejml.data.FMatrixRMaj>
public boolean decompose(org.ejml.data.FMatrixRMaj mat)
Performs Choleksy decomposition on the provided matrix.
If the matrix is not positive definite then this function will return false since it can't complete its computations. Not all errors will be found. This is an efficient way to check for positive definiteness.
decompose
in interface org.ejml.interfaces.decomposition.DecompositionInterface<org.ejml.data.FMatrixRMaj>
mat
- A symmetric positive definite matrix with n ≤ widthMax.public boolean inputModified()
inputModified
in interface org.ejml.interfaces.decomposition.DecompositionInterface<org.ejml.data.FMatrixRMaj>
protected abstract boolean decomposeLower()
protected abstract boolean decomposeUpper()
public org.ejml.data.FMatrixRMaj getT(org.ejml.data.FMatrixRMaj T)
getT
in interface org.ejml.interfaces.decomposition.CholeskyDecomposition<org.ejml.data.FMatrixRMaj>
public org.ejml.data.FMatrixRMaj getT()
public float[] _getVV()
public org.ejml.data.Complex_F32 computeDeterminant()
computeDeterminant
in interface org.ejml.interfaces.decomposition.CholeskyDecomposition_F32<org.ejml.data.FMatrixRMaj>