|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ojalgo.matrix.decomposition.CholeskyDecomposition<N>
public abstract class CholeskyDecomposition<N extends Number>
| Nested Class Summary | |
|---|---|
static interface |
CholeskyDecomposition.CholeskyStore<N extends Number>
Only classes that will act as a delegate to CholeskyDecomposition should implement this interface. |
| Method Summary | |
|---|---|
boolean |
compute(MatrixStore<N> aStore)
|
boolean |
equals(BasicMatrix aMtrx,
NumberContext aCntxt)
|
boolean |
equals(MatrixStore<N> aStore,
NumberContext aCntxt)
|
MatrixStore<N> |
getD()
|
N |
getDeterminant()
|
MatrixStore<N> |
getInverse()
The output must be a "right inverse" and a "generalised inverse". |
MatrixStore<N> |
getL()
|
MatrixStore<N> |
getP()
|
int[] |
getPivotOrder()
|
MatrixStore<N> |
getR()
|
int |
getRank()
|
MatrixStore<N> |
getU()
|
MatrixStore<N> |
invert(MatrixStore<N> aStore)
A convenience method that produces exactly the same result as if you first call MatrixDecomposition.compute(MatrixStore) and then MatrixDecomposition.getInverse(). |
boolean |
isComputed()
|
boolean |
isFullSize()
|
boolean |
isSingular()
|
boolean |
isSolvable()
|
boolean |
isSPD()
To use the Cholesky decomposition rather than the LU decomposition the matrix must be symmetric and positive definite. |
static Cholesky<BigDecimal> |
makeBig()
|
static Cholesky<ComplexNumber> |
makeComplex()
|
static Cholesky<Double> |
makeJama()
|
static Cholesky<Double> |
makePrimitive()
|
void |
reset()
|
MatrixStore<N> |
solve(MatrixStore<N> aRHS)
Solves [this][X] = [aRHS] by first solving |
Future<DecomposeAndSolve<N>> |
solve(MatrixStore<N> aBody,
MatrixStore<N> aRHS)
Will solve [aBody][X]=[aRHS] concurrently by first calling MatrixDecomposition.compute(MatrixStore) using [aBody], and then
MatrixDecomposition.solve(MatrixStore) using [aRHS]. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.ojalgo.matrix.decomposition.MatrixDecomposition |
|---|
equals, invert, isComputed, solve |
| Method Detail |
|---|
public static final Cholesky<BigDecimal> makeBig()
public static final Cholesky<ComplexNumber> makeComplex()
public static final Cholesky<Double> makeJama()
public static final Cholesky<Double> makePrimitive()
public boolean compute(MatrixStore<N> aStore)
compute in interface MatrixDecomposition<N extends Number>aStore - A matrix to decompose
public boolean equals(MatrixStore<N> aStore,
NumberContext aCntxt)
equals in interface MatrixDecomposition<N extends Number>public MatrixStore<N> getD()
getD in interface LU<N extends Number>public N getDeterminant()
getDeterminant in interface LU<N extends Number>public MatrixStore<N> getInverse()
MatrixDecomposition
getInverse in interface MatrixDecomposition<N extends Number>BasicMatrix.invert()public MatrixStore<N> getL()
getL in interface LU<N extends Number>public MatrixStore<N> getP()
getP in interface LU<N extends Number>public int[] getPivotOrder()
getPivotOrder in interface LU<N extends Number>public MatrixStore<N> getR()
getR in interface Cholesky<N extends Number>public int getRank()
getRank in interface LU<N extends Number>public MatrixStore<N> getU()
getU in interface LU<N extends Number>public final boolean isFullSize()
isFullSize in interface MatrixDecomposition<N extends Number>public boolean isSingular()
isSingular in interface LU<N extends Number>public boolean isSolvable()
isSolvable in interface MatrixDecomposition<N extends Number>MatrixDecomposition.solve(MatrixStore)
(computation was successful); false if notMatrixDecomposition.solve(MatrixStore),
MatrixDecomposition.isComputed()public boolean isSPD()
Cholesky
isSPD in interface Cholesky<N extends Number>public void reset()
reset in interface MatrixDecomposition<N extends Number>public MatrixStore<N> solve(MatrixStore<N> aRHS)
[L][Y] = [aRHS]and then
[U][X] = [Y].
solve in interface MatrixDecomposition<N extends Number>aRHS - The right hand side
public boolean equals(BasicMatrix aMtrx,
NumberContext aCntxt)
equals in interface MatrixDecomposition<N extends Number>public final MatrixStore<N> invert(MatrixStore<N> aStore)
MatrixDecompositionMatrixDecomposition.compute(MatrixStore) and then MatrixDecomposition.getInverse().
invert in interface MatrixDecomposition<N extends Number>public boolean isComputed()
isComputed in interface MatrixDecomposition<N extends Number>MatrixDecomposition.compute(MatrixStore),
MatrixDecomposition.isSolvable()
public Future<DecomposeAndSolve<N>> solve(MatrixStore<N> aBody,
MatrixStore<N> aRHS)
MatrixDecompositionMatrixDecomposition.compute(MatrixStore) using [aBody], and then
MatrixDecomposition.solve(MatrixStore) using [aRHS]. If either of the input [aBody]
or [aRHS] is set to null the corresponing calculation is skipped.
solve in interface MatrixDecomposition<N extends Number>aBody - The equation system bodyaRHS - The equation system right hand side
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||