public class DenseDoubleCholeskyDecomposition extends Object implements Serializable
Constructor and Description |
---|
DenseDoubleCholeskyDecomposition(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.
|
DoubleMatrix2D |
getLtranspose() |
void |
solve(DoubleMatrix1D b)
Solves A*x = b(in-place).
|
void |
solve(DoubleMatrix2D B)
Solves A*X = B(in-place).
|
String |
toString()
Returns a String with (propertyName, propertyValue) pairs.
|
public DenseDoubleCholeskyDecomposition(DoubleMatrix2D A)
A
- Square, symmetric positive definite matrix .IllegalArgumentException
- if A is not square or is not a symmetric positive
definite.public DoubleMatrix2D getL()
public DoubleMatrix2D getLtranspose()
public void solve(DoubleMatrix2D B)
B
- A Matrix with as many rows as A and any number of
columns.IllegalArgumentException
- if B.rows() != A.rows().public void solve(DoubleMatrix1D b)
b
- A vector with of size A.rows();IllegalArgumentException
- if b.size() != A.rows().Jump to the Parallel Colt Homepage