|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mpv2.CholeskyDecomposition
public class CholeskyDecomposition
Cholesky Decomposition.
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 Summary | |
---|---|
CholeskyDecomposition(JamaMatrix Arg)
Cholesky algorithm for symmetric and positive definite matrix. |
Method Summary | |
---|---|
JamaMatrix |
getL()
Return triangular factor. |
boolean |
isSPD()
Is the matrix symmetric and positive definite? |
JamaMatrix |
solve(JamaMatrix B)
Solve A*X = B |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CholeskyDecomposition(JamaMatrix Arg)
Arg
- Square, symmetric matrix.Method Detail |
---|
public boolean isSPD()
public JamaMatrix getL()
public JamaMatrix solve(JamaMatrix B)
B
- A JamaMatrix with as many rows as A and any number of columns.
java.lang.IllegalArgumentException
- JamaMatrix row dimensions must agree.
java.lang.RuntimeException
- JamaMatrix is not symmetric positive definite.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |