mikera.matrixx.decompose.impl.chol
Class CholeskyHelper
- java.lang.Object
-
- mikera.matrixx.decompose.impl.chol.CholeskyHelper
-
public class CholeskyHelper extends java.lang.ObjectA specialized Cholesky decomposition algorithm that is designed to help outCholeskyDecompositionBlockperform its calculations. While decomposing the matrix it will modify its internal lower triangular matrix and the original that is being modified.
-
-
Constructor Summary
Constructors Constructor and Description CholeskyHelper(int widthMax)Creates a CholeksyDecomposition capable of decomposing a matrix that is n by n, where n is the width.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleandecompose(AMatrix mat, int indexStart, int n)Decomposes a submatrix.AMatrixgetL()Returns L matrix from the decomposition.
L*LT=A
-
-
-
Constructor Detail
-
CholeskyHelper
public CholeskyHelper(int widthMax)
Creates a CholeksyDecomposition capable of decomposing a matrix that is n by n, where n is the width.- Parameters:
widthMax- The maximum width of a matrix that can be processed.
-
-
Method Detail
-
decompose
public boolean decompose(AMatrix mat, int indexStart, int n)
Decomposes a submatrix. The results are written to the submatrix and to its internal matrix L.- Parameters:
mat- A matrix which has a submatrix that needs to be invertedindexStart- the first index of the submatrixn- The width of the submatrix that is to be inverted.- Returns:
- True if it was able to finish the decomposition.
-
getL
public AMatrix getL()
Returns L matrix from the decomposition.
L*LT=A- Returns:
- A lower triangular matrix.
-
-
DMelt 3.0 © DataMelt by jWork.ORG