public abstract class CholeskyCommon extends Object
This is an abstract class for a Cholesky decomposition. It provides the solvers, but the actual decompsoition is provided in other classes.
A Cholesky Decomposition is a special decomposition for positive-definite symmetric matrices
that is more efficient than other general purposes decomposition. It refactors matrices
using one of the two following equations:
L*LT=A
RT*R=A
where L is a lower triangular matrix and R is an upper traingular matrix.
CholeskyDecompositionInner,
org.ejml.alg.dense.decomposition.chol.CholeskyDecompositionBlock,
org.ejml.alg.dense.decomposition.chol.CholeskyDecompositionLDL| Modifier and Type | Field and Description |
|---|---|
protected int |
n |
protected double[] |
t |
protected Matrix |
T |
protected double[] |
vv |
| Modifier | Constructor and Description |
|---|---|
protected |
CholeskyCommon()
Creates a CholeksyDecomposition capable of decomposing a matrix that is
n by n, where n is the width.
|
| Modifier and Type | Method and Description |
|---|---|
protected ICholeskyResult |
_decompose(AMatrix mat)
Performs Choleksy decomposition on the provided matrix.
|
protected abstract CholeskyResult |
decomposeLower()
Performs an lower triangular decomposition.
|
protected int n
protected Matrix T
protected double[] t
protected double[] vv
protected CholeskyCommon()
protected ICholeskyResult _decompose(AMatrix mat)
Performs Choleksy decomposition on the provided matrix.
If the matrix is not positive definite then this function will return null since it can't complete its computations. Not all errors will be found. This is an efficient way to check for positive definiteness.
mat - A symmetric positive definite matrix.protected abstract CholeskyResult decomposeLower()
Copyright © 2016. All rights reserved.