Class CholeskyOuterForm_MT_DDRB
java.lang.Object
org.ejml.dense.block.decomposition.chol.CholeskyOuterForm_MT_DDRB
- All Implemented Interfaces:
CholeskyDecomposition<DMatrixRBlock>
,CholeskyDecomposition_F64<DMatrixRBlock>
,DecompositionInterface<DMatrixRBlock>
@Generated("org.ejml.dense.block.decomposition.chol.CholeskyOuterForm_DDRB")
public class CholeskyOuterForm_MT_DDRB
extends Object
implements CholeskyDecomposition_F64<DMatrixRBlock>
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
ConstructorDescriptionCholeskyOuterForm_MT_DDRB
(boolean lower) Creates a new BlockCholeskyOuterForm -
Method Summary
Modifier and TypeMethodDescriptionComputes the matrix's determinant using the decomposition.boolean
Decomposes the provided matrix and stores the result in the same matrix.getT
(@Nullable DMatrixRBlock T) Returns the triangular matrix from the decomposition.boolean
Checks if the input matrix toDecompositionInterface.decompose(org.ejml.data.Matrix)
is modified during the decomposition process.boolean
isLower()
If true the decomposition was for a lower triangular matrix.
-
Constructor Details
-
CholeskyOuterForm_MT_DDRB
public CholeskyOuterForm_MT_DDRB(boolean lower) Creates a new BlockCholeskyOuterForm- Parameters:
lower
- Should it decompose it into a lower triangular matrix or not.
-
-
Method Details
-
decompose
Decomposes the provided matrix and stores the result in the same matrix.- Specified by:
decompose
in interfaceDecompositionInterface<DMatrixRBlock>
- Parameters:
A
- Matrix that is to be decomposed. Modified.- Returns:
- If it succeeded or not.
-
isLower
public boolean isLower()Description copied from interface:CholeskyDecomposition
If true the decomposition was for a lower triangular matrix. If false it was for an upper triangular matrix.- Specified by:
isLower
in interfaceCholeskyDecomposition<DMatrixRBlock>
- Returns:
- True if lower, false if upper.
-
getT
Description copied from interface:CholeskyDecomposition
Returns 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:
getT
in interfaceCholeskyDecomposition<DMatrixRBlock>
- Parameters:
T
- If not null then the decomposed matrix is written here.- Returns:
- A lower or upper triangular matrix.
-
computeDeterminant
Description copied from interface:CholeskyDecomposition_F64
Computes the matrix's determinant using the decomposition.- Specified by:
computeDeterminant
in interfaceCholeskyDecomposition_F64<DMatrixRBlock>
- Returns:
- The determinant.
-
inputModified
public boolean inputModified()Description copied from interface:DecompositionInterface
Checks if the input matrix toDecompositionInterface.decompose(org.ejml.data.Matrix)
is modified during the decomposition process.- Specified by:
inputModified
in interfaceDecompositionInterface<DMatrixRBlock>
- Returns:
- true if the input matrix to decompose() is modified.
-