Class CholeskyUpLooking_FSCC
java.lang.Object
org.ejml.sparse.csc.decomposition.chol.CholeskyUpLooking_FSCC
- All Implemented Interfaces:
CholeskyDecomposition<FMatrixSparseCSC>,CholeskySparseDecomposition<FMatrixSparseCSC>,CholeskySparseDecomposition_F32<FMatrixSparseCSC>,DecompositionInterface<FMatrixSparseCSC>,DecompositionSparseInterface<FMatrixSparseCSC>
@Generated("org.ejml.sparse.csc.decomposition.chol.CholeskyUpLooking_DSCC")
public class CholeskyUpLooking_FSCC
extends Object
implements CholeskySparseDecomposition_F32<FMatrixSparseCSC>
Performs a Cholesky decomposition using an up looking algorthm on a
FMatrixSparseCSC.
See page 59 in "Direct Methods for Sparse Linear Systems" by Tomothy A. Davis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionComputes the matrix's determinant using the decomposition.booleandecompose(FMatrixSparseCSC orig) Computes the decomposition of the input matrix.getGw()getGx()getL()getT(@Nullable FMatrixSparseCSC T) Returns the triangular matrix from the decomposition.booleanChecks if 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.booleanChecks to see if the structure is locked.voidvoidsetStructureLocked(boolean locked) Save results from structural analysis step.
-
Constructor Details
-
CholeskyUpLooking_FSCC
public CholeskyUpLooking_FSCC()
-
-
Method Details
-
decompose
Description copied from interface:DecompositionInterfaceComputes 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<FMatrixSparseCSC>- Parameters:
orig- The matrix which is being decomposed. Modification is implementation dependent.- Returns:
- Returns if it was able to decompose the matrix.
-
performSymbolic
-
inputModified
public boolean inputModified()Description copied from interface:DecompositionInterfaceChecks if the input matrix toDecompositionInterface.decompose(org.ejml.data.Matrix)is modified during the decomposition process.- Specified by:
inputModifiedin interfaceDecompositionInterface<FMatrixSparseCSC>- Returns:
- true if the input matrix to decompose() is modified.
-
isLower
public boolean isLower()Description copied from interface:CholeskyDecompositionIf true the decomposition was for a lower triangular matrix. If false it was for an upper triangular matrix.- Specified by:
isLowerin interfaceCholeskyDecomposition<FMatrixSparseCSC>- Returns:
- True if lower, false if upper.
-
getT
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<FMatrixSparseCSC>- Parameters:
T- If not null then the decomposed matrix is written here.- Returns:
- A lower or upper triangular matrix.
-
computeDeterminant
Description copied from interface:CholeskySparseDecomposition_F32Computes the matrix's determinant using the decomposition.- Specified by:
computeDeterminantin interfaceCholeskySparseDecomposition_F32<FMatrixSparseCSC>- Returns:
- The determinant.
-
getGx
-
getL
-
getGw
-
setStructureLocked
public void setStructureLocked(boolean locked) Description copied from interface:DecompositionSparseInterfaceSave results from structural analysis step. This can reduce computations if a matrix with the exactly same non-zero pattern is decomposed in the future. If a matrix has yet to be processed then the structure of the next matrix is saved. If a matrix has already been processed then the structure of the most recently processed matrix will be saved.
- Specified by:
setStructureLockedin interfaceDecompositionSparseInterface<FMatrixSparseCSC>
-
isStructureLocked
public boolean isStructureLocked()Description copied from interface:DecompositionSparseInterfaceChecks to see if the structure is locked.- Specified by:
isStructureLockedin interfaceDecompositionSparseInterface<FMatrixSparseCSC>- Returns:
- true if locked or false if not locked.
-