public class CholeskyDecomposition extends Object implements Serializable
For a symmetric, positive definite matrix A, the Cholesky decomposition is an lower triangular matrix L so that A = L*L'.
If the matrix is not symmetric or positive definite, the constructor returns a partial decomposition and sets an internal flag that may be queried by the isSPD() method.
| Constructor and Description |
|---|
CholeskyDecomposition(MatrixD Arg)
Cholesky algorithm for symmetric and positive definite matrix.
|
| Modifier and Type | Method and Description |
|---|---|
MatrixD |
getL()
Return triangular factor.
|
boolean |
isSPD()
Is the matrix symmetric and positive definite?
|
MatrixD |
solve(MatrixD B)
Solve A*X = B
|
public CholeskyDecomposition(MatrixD Arg)
Arg - Square, symmetric matrix. Structure to access L and isspd flag.public MatrixD getL()
public boolean isSPD()
public MatrixD solve(MatrixD B)
B - A Matrix with as many rows as A and any number of columns.IllegalArgumentException - Matrix row dimensions must agree.RuntimeException - Matrix is not symmetric positive definite.Copyright © 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.