public class PackCholesky
extends java.lang.Object
Constructor and Description |
---|
PackCholesky(int n,
boolean upper)
Constructor for DenseCholesky
|
Modifier and Type | Method and Description |
---|---|
PackCholesky |
factor(LowerSPDPackMatrix A)
Calculates a Cholesky decomposition
|
PackCholesky |
factor(UpperSPDPackMatrix A)
Calculates a Cholesky decomposition
|
static PackCholesky |
factorize(Matrix A)
Calculates a Cholesky decomposition
|
LowerTriangPackMatrix |
getL()
Returns the decomposition matrix.
|
UpperTriangPackMatrix |
getU()
Returns the decomposition matrix.
|
boolean |
isSPD()
Returns true if the matrix decomposed is symmetrical, positive definite
|
double |
rcond(Matrix A)
Computes the reciprocal condition number
|
DenseMatrix |
solve(DenseMatrix B)
Solves for
B , overwriting it on return |
public PackCholesky(int n, boolean upper)
n
- Matrix sizeupper
- True for decomposing an upper symmetrical matrix, false for a
lower symmetrical matrixpublic static PackCholesky factorize(Matrix A)
A
- Matrix to decompose. Not modifiedpublic PackCholesky factor(LowerSPDPackMatrix A)
A
- Matrix to decompose. Overwritten on returnpublic PackCholesky factor(UpperSPDPackMatrix A)
A
- Matrix to decompose. Overwritten on returnpublic boolean isSPD()
public LowerTriangPackMatrix getL()
public UpperTriangPackMatrix getU()
public DenseMatrix solve(DenseMatrix B) throws MatrixNotSPDException
B
, overwriting it on returnMatrixNotSPDException
public double rcond(Matrix A)
A
- The matrix this is a decomposition of