public class CholeskyDecomposition
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
CholeskyDecomposition(DoubleMatrix2D A)
Constructs and returns a new Cholesky decomposition object for a symmetric and positive definite matrix;
The decomposed matrices can be retrieved via instance methods of the returned decomposition object.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleMatrix2D |
getL()
Returns the triangular factor, L.
|
boolean |
isSymmetricPositiveDefinite()
Returns whether the matrix A is symmetric and positive definite.
|
DoubleMatrix2D |
solve(DoubleMatrix2D B)
Solves A*X = B; returns X.
|
java.lang.String |
toString()
Returns a String with (propertyName, propertyValue) pairs.
|
public CholeskyDecomposition(DoubleMatrix2D A)
A - Square, symmetric matrix.java.lang.IllegalArgumentException - if A is not square.public DoubleMatrix2D getL()
public boolean isSymmetricPositiveDefinite()
public DoubleMatrix2D solve(DoubleMatrix2D B)
B - A Matrix with as many rows as A and any number of columns.java.lang.IllegalArgumentException - if B.rows() != A.rows().java.lang.IllegalArgumentException - if !isSymmetricPositiveDefinite().public java.lang.String toString()
rank : 3 trace : 0
toString in class java.lang.ObjectJump to the Colt Homepage