org.ejml.alg.dense.decompose.chol
Class CholeskyDecompositionCommon_CD64
- java.lang.Object
-
- org.ejml.alg.dense.decompose.chol.CholeskyDecompositionCommon_CD64
-
- All Implemented Interfaces:
- CholeskyDecomposition<CDenseMatrix64F>, DecompositionInterface<CDenseMatrix64F>
- Direct Known Subclasses:
- CholeskyDecompositionInner_CD64
public abstract class CholeskyDecompositionCommon_CD64 extends java.lang.Object implements CholeskyDecomposition<CDenseMatrix64F>
This is an abstract class for a Cholesky decomposition. It provides the solvers, but the actual decomposition is provided in other classes.
- See Also:
CholeskyDecomposition
-
-
Constructor Summary
Constructors Constructor and Description CholeskyDecompositionCommon_CD64(boolean lower)Specifies if a lower or upper variant should be constructed.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description CDenseMatrix64F_getT()Returns the raw decomposed matrix.Complex64FcomputeDeterminant()Computes the matrix's determinant using the decomposition.booleandecompose(CDenseMatrix64F mat)Computes the decomposition of the input matrix.CDenseMatrix64FgetT(CDenseMatrix64F T)Returns the triangular matrix from the decomposition.booleaninputModified()Is the input matrix toDecompositionInterface.decompose(org.ejml.data.Matrix)is modified during the decomposition process.booleanisLower()If true the decomposition was for a lower triangular matrix.
-
-
-
Constructor Detail
-
CholeskyDecompositionCommon_CD64
public CholeskyDecompositionCommon_CD64(boolean lower)
Specifies if a lower or upper variant should be constructed.- Parameters:
lower- should a lower or upper triangular matrix be used.
-
-
Method Detail
-
isLower
public boolean isLower()
If true the decomposition was for a lower triangular matrix. If false it was for an upper triangular matrix.- Specified by:
isLowerin interfaceCholeskyDecomposition<CDenseMatrix64F>- Returns:
- True if lower, false if upper.
-
decompose
public boolean decompose(CDenseMatrix64F mat)
Computes the decomposition of the input matrix. Depending on the implementation the input matrix might be stored internally or modified. If it is modified then the functionDecompositionInterface.inputModified()will return true and the matrix should not be modified until the decomposition is no longer needed.- Specified by:
decomposein interfaceDecompositionInterface<CDenseMatrix64F>- Parameters:
mat- The matrix which is being decomposed. Modification is implementation dependent.- Returns:
- Returns if it was able to decompose the matrix.
-
inputModified
public boolean inputModified()
Description copied from interface:DecompositionInterfaceIs the input matrix toDecompositionInterface.decompose(org.ejml.data.Matrix)is modified during the decomposition process.- Specified by:
inputModifiedin interfaceDecompositionInterface<CDenseMatrix64F>- Returns:
- true if the input matrix to decompose() is modified.
-
getT
public CDenseMatrix64F getT(CDenseMatrix64F T)
Description copied from interface:CholeskyDecompositionReturns the 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.
- Specified by:
getTin interfaceCholeskyDecomposition<CDenseMatrix64F>- Parameters:
T- If not null then the decomposed matrix is written here.- Returns:
- A lower or upper triangular matrix.
-
_getT
public CDenseMatrix64F _getT()
Returns the raw decomposed matrix.- Returns:
- A lower or upper triangular matrix.
-
computeDeterminant
public Complex64F computeDeterminant()
Description copied from interface:CholeskyDecompositionComputes the matrix's determinant using the decomposition.- Specified by:
computeDeterminantin interfaceCholeskyDecomposition<CDenseMatrix64F>- Returns:
- The determinant.
-
-
DMelt 3.0 © DataMelt by jWork.ORG