public interface CholeskyLDLDecomposition<MatrixType extends Matrix> extends DecompositionInterface<MatrixType>
Cholesky LDLT decomposition for
A Cholesky LDL decomposition decomposes positive-definite symmetric matrices into:DenseMatrix64F.
L*D*LT=A
where L is a lower triangular matrix and D is a diagonal matrix. The main advantage of LDL versus LL or RR Cholesky is that
it avoid a square root operation.
CholeskyDecompositionLDL_D64| Modifier and Type | Method and Description |
|---|---|
MatrixType |
getD(MatrixType D)
Returns the diagonal matrixfrom the decomposition.
|
double[] |
getDiagonal()
Returns the elements in the diagonal matrix
|
MatrixType |
getL(MatrixType L)
Returns the lower triangular matrix from the decomposition.
|
decompose, inputModifiedMatrixType getL(MatrixType L)
Returns the lower triangular matrix from the decomposition.
If an input is provided that matrix is used to write the results to. Otherwise a new matrix is created and the results written to it.
L - If not null then the decomposed matrix is written here.double[] getDiagonal()
MatrixType getD(MatrixType D)
Returns the diagonal matrixfrom the decomposition.
If an input is provided that matrix is used to write the results to. Otherwise a new matrix is created and the results written to it.
D - If not null it will be used to store the diagonal matrix