public class DenseFloatCholeskyDecomposition extends Object implements Serializable
Constructor and Description |
---|
DenseFloatCholeskyDecomposition(FloatMatrix2D 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 |
---|---|
FloatMatrix2D |
getL()
Returns the triangular factor, L.
|
FloatMatrix2D |
getLtranspose() |
boolean |
isSymmetricPositiveDefinite()
Returns whether the matrix A is symmetric and positive definite.
|
FloatMatrix1D |
solve(FloatMatrix1D b) |
FloatMatrix2D |
solve(FloatMatrix2D B)
Solves A*X = B; returns X.
|
String |
toString()
Returns a String with (propertyName, propertyValue) pairs.
|
public DenseFloatCholeskyDecomposition(FloatMatrix2D A)
A
- Square, symmetric matrix.IllegalArgumentException
- if A is not square.public FloatMatrix2D getL()
public FloatMatrix2D getLtranspose()
public boolean isSymmetricPositiveDefinite()
public FloatMatrix2D solve(FloatMatrix2D B)
B
- A Matrix with as many rows as A and any number of
columns.IllegalArgumentException
- if B.rows() != A.rows().IllegalArgumentException
- if !isSymmetricPositiveDefinite().public FloatMatrix1D solve(FloatMatrix1D b)
Jump to the Parallel Colt Homepage