mikera.matrixx.decompose.impl.chol
Class Cholesky
- java.lang.Object
-
- mikera.matrixx.decompose.impl.chol.CholeskyCommon
-
- mikera.matrixx.decompose.impl.chol.Cholesky
-
public class Cholesky extends CholeskyCommon
This is an implementation of Cholesky that processes internal submatrices as blocks. This is done to reduce the number of cache issues.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static ICholeskyResultdecompose(AMatrix mat)Computes the Cholesky Decomposition (A = LU) of a matrix, taking default block width = 60.static ICholeskyResultdecompose(AMatrix mat, int blockWidth)Computes the Cholesky LDU Decomposition (A = LDU) of a matrix.
-
-
-
Method Detail
-
decompose
public static ICholeskyResult decompose(AMatrix mat)
Computes the Cholesky Decomposition (A = LU) of a matrix, taking default block width = 60.
If the matrix is not positive definite then this function will return null since it can't complete its computations. Not all errors will be found. This is an efficient way to check for positive definiteness.
- Parameters:
mat- A symmetric positive definite matrix- Returns:
- A Cholesky Decomposition Result
-
decompose
public static ICholeskyResult decompose(AMatrix mat, int blockWidth)
Computes the Cholesky LDU Decomposition (A = LDU) of a matrix.
If the matrix is not positive definite then this function will return null since it can't complete its computations. Not all errors will be found. This is an efficient way to check for positive definiteness.
- Parameters:
mat- A symmetric positive definite matrixblockWidth- The width of a block.- Returns:
- ICholeskyResult if decomposition is successful, null otherwise.
-
-
DMelt 3.0 © DataMelt by jWork.ORG