public class CholeskyDecompositionLDL_FDRM
extends java.lang.Object
implements org.ejml.interfaces.decomposition.CholeskyLDLDecomposition_F32<org.ejml.data.FMatrixRMaj>
This variant on the Cholesky decomposition avoid the need to take the square root
by performing the following decomposition:
L*D*LT=A
where L is a lower triangular matrix with zeros on the diagonal. D is a diagonal matrix.
The diagonal elements of L are equal to one.
Unfortunately the speed advantage of not computing the square root is washed out by the increased number of array accesses. There only appears to be a slight speed boost for very small matrices.
Constructor and Description |
---|
CholeskyDecompositionLDL_FDRM() |
Modifier and Type | Method and Description |
---|---|
float[] |
_getVV() |
boolean |
decompose(org.ejml.data.FMatrixRMaj mat)
Performs Choleksy decomposition on the provided matrix.
|
org.ejml.data.FMatrixRMaj |
getD(org.ejml.data.FMatrixRMaj D) |
float[] |
getDiagonal()
Diagonal elements of the diagonal D matrix.
|
org.ejml.data.FMatrixRMaj |
getL()
Returns L matrix from the decomposition.
L*D*LT=A |
org.ejml.data.FMatrixRMaj |
getL(org.ejml.data.FMatrixRMaj L) |
boolean |
inputModified() |
void |
setExpectedMaxSize(int numRows,
int numCols) |
public void setExpectedMaxSize(int numRows, int numCols)
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.
decompose
in interface org.ejml.interfaces.decomposition.DecompositionInterface<org.ejml.data.FMatrixRMaj>
mat
- A symetric n by n positive definite matrix.public boolean inputModified()
inputModified
in interface org.ejml.interfaces.decomposition.DecompositionInterface<org.ejml.data.FMatrixRMaj>
public float[] getDiagonal()
getDiagonal
in interface org.ejml.interfaces.decomposition.CholeskyLDLDecomposition_F32<org.ejml.data.FMatrixRMaj>
public org.ejml.data.FMatrixRMaj getL()
public float[] _getVV()
public org.ejml.data.FMatrixRMaj getL(org.ejml.data.FMatrixRMaj L)
getL
in interface org.ejml.interfaces.decomposition.CholeskyLDLDecomposition<org.ejml.data.FMatrixRMaj>
public org.ejml.data.FMatrixRMaj getD(org.ejml.data.FMatrixRMaj D)
getD
in interface org.ejml.interfaces.decomposition.CholeskyLDLDecomposition<org.ejml.data.FMatrixRMaj>