|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.matrix.doubles.factorization.triangle.Cholesky
public class Cholesky
Cholesky decomposition decomposes a real, symmetric (hence square), and positive definite matrix A into
A = L %*% Lt
L is a lower triangular matrix.
For any real, symmetric, positive definite matrix, there is a unique Cholesky decomposition, such that
L's diagonal entries are all positive.
We implement the Cholesky-Crout algorithm.
It starts from the upper left corner of the matrix L and proceeds to calculate the matrix row by row.
If the matrix is not symmetric, it throws an IllegalArgumentException.
If the matrix is not positive definite, it throws a RuntimeException.
| Constructor Summary | |
|---|---|
Cholesky(Matrix A)
Run the Cholesky decomposition. |
|
| Method Summary | |
|---|---|
LowerTriangularMatrix |
L()
Get a copy of the lower triangular matrix L as in
L %*% Lt. |
UpperTriangularMatrix |
Lt()
Get a copy of the transpose of the lower triangular matrix L as in
A = L %*% Lt. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Cholesky(Matrix A)
A - a real, symmetric (hence square), and positive definite matrix
java.lang.IllegalArgumentException - if A is not symmetric
java.lang.RuntimeException - if A is not positive definite matrix| Method Detail |
|---|
public LowerTriangularMatrix L()
L as in
L %*% Lt.
Lpublic UpperTriangularMatrix Lt()
L as in
A = L %*% Lt.
The transpose is upper triangular.
Lt
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||