public class BandCholesky extends Object
| Constructor and Description |
|---|
BandCholesky(int n,
int kd,
boolean upper)
Constructor for BandCholesky
|
| Modifier and Type | Method and Description |
|---|---|
BandCholesky |
factor(LowerSPDBandMatrix A)
Creates a Cholesky decomposition of the given matrix
|
BandCholesky |
factor(UpperSPDBandMatrix A)
Creates a Cholesky decomposition of the given matrix
|
static BandCholesky |
factorize(LowerSPDBandMatrix A)
Creates a Cholesky decomposition of the given matrix
|
static BandCholesky |
factorize(UpperSPDBandMatrix A)
Creates a Cholesky decomposition of the given matrix
|
LowerTriangBandMatrix |
getL()
Returns the decomposition matrix.
|
UpperTriangBandMatrix |
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)
Computes
A\B, overwriting B |
public BandCholesky(int n,
int kd,
boolean upper)
n - Matrix sizekd - Number of matrix bandsupper - True for decomposing an upper symmetrical matrix, false for a
lower symmetrical matrixpublic static BandCholesky factorize(LowerSPDBandMatrix A)
A - Matrix to decompose. Not modifiedpublic static BandCholesky factorize(UpperSPDBandMatrix A)
A - Matrix to decompose. Not modifiedpublic BandCholesky factor(LowerSPDBandMatrix A)
A - Matrix to decompose. Overwritten on returnpublic BandCholesky factor(UpperSPDBandMatrix A)
A - Matrix to decompose. Overwritten on returnpublic LowerTriangBandMatrix getL()
public UpperTriangBandMatrix getU()
public boolean isSPD()
public double rcond(Matrix A)
A - The matrix this is a decomposition ofpublic DenseMatrix solve(DenseMatrix B) throws MatrixNotSPDException
A\B, overwriting BMatrixNotSPDExceptionCopyright © 2015. All Rights Reserved.