public class CholeskyDecomposition
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
isspd
Symmetric and positive definite flag.
|
private double[][] |
L
Array for internal storage of decomposition.
|
Constructor and Description |
---|
CholeskyDecomposition(double[][] A)
Cholesky algorithm for symmetric and positive definite matrix.
|
Modifier and Type | Method and Description |
---|---|
double[][] |
getL()
Return triangular factor.
|
boolean |
isSPD()
Is the matrix symmetric and positive definite?
|
double[] |
solve(double[] b)
Solve A*X = b
|
double[][] |
solve(double[][] B)
Solve A*X = B
|
private double[][] |
solveL(double[][] X)
Solve L*Y = B
|
double[] |
solveLInplace(double[] X)
Solve L*X = b, modifying X.
|
private double[] |
solveLtransposed(double[] X)
Solve L^T*X = Y
|
private double[][] |
solveLtransposed(double[][] X)
Solve L^T*X = Y
|
private double[][] L
private boolean isspd
public CholeskyDecomposition(double[][] A)
A
- Square, symmetric matrix.public boolean isSPD()
public double[][] getL()
public double[][] solve(double[][] B)
B
- A Matrix with as many rows as A and any number of columns.java.lang.IllegalArgumentException
- Matrix row dimensions must agree.java.lang.RuntimeException
- Matrix is not symmetric positive definite.private double[][] solveL(double[][] X)
X
- Copy of B.private double[][] solveLtransposed(double[][] X)
X
- Solution of L*Y=Bpublic double[] solve(double[] b)
b
- A column vector with as many rows as A.java.lang.IllegalArgumentException
- Matrix row dimensions must agree.java.lang.RuntimeException
- Matrix is not symmetric positive definite.public double[] solveLInplace(double[] X)
X
- Copy of b.private double[] solveLtransposed(double[] X)
X
- Solution of L*Y=bCopyright © 2019 ELKI Development Team. License information.