org.ejml.alg.block.decomposition.chol
Class CholeskyOuterForm_B64
- java.lang.Object
-
- org.ejml.alg.block.decomposition.chol.CholeskyOuterForm_B64
-
- All Implemented Interfaces:
- CholeskyDecomposition<BlockMatrix64F>, DecompositionInterface<BlockMatrix64F>
public class CholeskyOuterForm_B64 extends java.lang.Object implements CholeskyDecomposition<BlockMatrix64F>
Block Cholesky using outer product form. The original matrix is stored and modified.
Based on the description provided in "Fundamentals of Matrix Computations" 2nd Ed. by David S. Watkins.
-
-
Constructor Summary
Constructors Constructor and Description CholeskyOuterForm_B64(boolean lower)Creates a new BlockCholeskyOuterForm
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Complex64FcomputeDeterminant()Computes the matrix's determinant using the decomposition.booleandecompose(BlockMatrix64F A)Decomposes the provided matrix and stores the result in the same matrix.BlockMatrix64FgetT(BlockMatrix64F 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
-
CholeskyOuterForm_B64
public CholeskyOuterForm_B64(boolean lower)
Creates a new BlockCholeskyOuterForm- Parameters:
lower- Should it decompose it into a lower triangular matrix or not.
-
-
Method Detail
-
decompose
public boolean decompose(BlockMatrix64F A)
Decomposes the provided matrix and stores the result in the same matrix.- Specified by:
decomposein interfaceDecompositionInterface<BlockMatrix64F>- Parameters:
A- Matrix that is to be decomposed. Modified.- Returns:
- If it succeeded or not.
-
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<BlockMatrix64F>- Returns:
- True if lower, false if upper.
-
getT
public BlockMatrix64F getT(BlockMatrix64F 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<BlockMatrix64F>- Parameters:
T- If not null then the decomposed matrix is written here.- 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<BlockMatrix64F>- Returns:
- The determinant.
-
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<BlockMatrix64F>- Returns:
- true if the input matrix to decompose() is modified.
-
-
DMelt 3.0 © DataMelt by jWork.ORG