|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ojalgo.matrix.decomposition.SingularValueDecomposition<N>
public abstract class SingularValueDecomposition<N extends Number & Comparable<N>>
| Nested Class Summary | |
|---|---|
static class |
SingularValueDecomposition.RotateRight<N extends Number>
|
| Method Summary | |
|---|---|
boolean |
compute(MatrixStore<N> aStore)
|
boolean |
equals(BasicMatrix aMtrx,
NumberContext aCntxt)
|
boolean |
equals(MatrixStore<N> aStore,
NumberContext aCntxt)
|
N |
getCondition()
The condition number. |
MatrixStore<N> |
getD()
|
int[] |
getFilter(N aLimit)
|
N |
getFrobeniusNorm()
Sometimes also called the Schatten 2-norm or Hilbert-Schmidt norm. |
MatrixStore<N> |
getInverse()
The output must be a "right inverse" and a "generalised inverse". |
N |
getKyFanNorm(int k)
Ky Fan k-norm. |
MatrixStore<N> |
getQ1()
|
MatrixStore<N> |
getQ2()
|
int |
getRank()
Effective numerical matrix rank. |
Array1Dim<N> |
getSingularValues()
|
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 |
isSolvable()
|
static SingularValue<BigDecimal> |
makeBig()
|
static SingularValue<ComplexNumber> |
makeComplex()
|
static SingularValue<Double> |
makeJama()
|
static SingularValue<Double> |
makePrimitive()
|
void |
reset()
|
MatrixStore<N> |
solve(MatrixStore<N> aRHS)
|
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 SingularValue<BigDecimal> makeBig()
public static final SingularValue<ComplexNumber> makeComplex()
public static final SingularValue<Double> makeJama()
public static final SingularValue<Double> makePrimitive()
public final boolean compute(MatrixStore<N> aStore)
compute in interface MatrixDecomposition<N extends Number & Comparable<N>>aStore - A matrix to decompose
public final boolean equals(MatrixStore<N> aStore,
NumberContext aCntxt)
equals in interface MatrixDecomposition<N extends Number & Comparable<N>>public final N getCondition()
SingularValue
getCondition in interface SingularValue<N extends Number & Comparable<N>>public final MatrixStore<N> getD()
getD in interface SingularValue<N extends Number & Comparable<N>>public int[] getFilter(N aLimit)
public final N getFrobeniusNorm()
SingularValue
getFrobeniusNorm in interface SingularValue<N extends Number & Comparable<N>>public final MatrixStore<N> getInverse()
MatrixDecomposition
getInverse in interface MatrixDecomposition<N extends Number & Comparable<N>>BasicMatrix.invert()public final N getKyFanNorm(int k)
SingularValueKy Fan k-norm.
The first Ky Fan k-norm is the operator norm (the largest singular value), and the last is called the trace norm (the sum of all singular values).
getKyFanNorm in interface SingularValue<N extends Number & Comparable<N>>k - The number of singular values to add up.
public final MatrixStore<N> getQ1()
getQ1 in interface SingularValue<N extends Number & Comparable<N>>public final MatrixStore<N> getQ2()
getQ2 in interface SingularValue<N extends Number & Comparable<N>>public final int getRank()
SingularValue
getRank in interface SingularValue<N extends Number & Comparable<N>>public final Array1Dim<N> getSingularValues()
getSingularValues in interface SingularValue<N extends Number & Comparable<N>>public final boolean isFullSize()
isFullSize in interface MatrixDecomposition<N extends Number & Comparable<N>>public boolean isSolvable()
isSolvable in interface MatrixDecomposition<N extends Number & Comparable<N>>MatrixDecomposition.solve(MatrixStore)
(computation was successful); false if notMatrixDecomposition.solve(MatrixStore),
MatrixDecomposition.isComputed()public final void reset()
reset in interface MatrixDecomposition<N extends Number & Comparable<N>>public final MatrixStore<N> solve(MatrixStore<N> aRHS)
solve in interface MatrixDecomposition<N extends Number & Comparable<N>>
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 | ||||||||