|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.ojalgo.matrix.jama.JamaSingularValue
public final class JamaSingularValue
This class adapts JAMA's SingularValueDecomposition to ojAlgo's SingularValue interface. speed: 52.641s
| Constructor Summary | |
|---|---|
JamaSingularValue()
Not recommended to use this constructor directly. |
|
| Method Summary | |
|---|---|
boolean |
compute(Access2D<?> aStore)
|
boolean |
compute(Access2D<?> aMtrx,
boolean singularValuesOnly)
|
boolean |
equals(MatrixDecomposition<Double> aDecomp,
NumberContext aCntxt)
|
boolean |
equals(MatrixStore<Double> aStore,
NumberContext aCntxt)
|
double |
getCondition()
The condition number. |
JamaMatrix |
getD()
|
double |
getFrobeniusNorm()
Sometimes also called the Schatten 2-norm or Hilbert-Schmidt norm. |
JamaMatrix |
getInverse()
The output must be a "right inverse" and a "generalised inverse". |
MatrixStore<Double> |
getInverse(DecompositionStore<Double> preallocated)
Makes no use of preallocated at all. |
double |
getKyFanNorm(int k)
Ky Fan k-norm. |
double |
getOperatorNorm()
|
JamaMatrix |
getQ1()
|
JamaMatrix |
getQ2()
|
int |
getRank()
Effective numerical matrix rank. |
Array1D<Double> |
getSingularValues()
|
double |
getTraceNorm()
|
JamaMatrix |
invert(MatrixStore<Double> aStore)
|
boolean |
isAspectRatioNormal()
|
boolean |
isComputed()
|
boolean |
isFullSize()
|
boolean |
isOrdered()
|
boolean |
isSolvable()
|
MatrixStore<Double> |
reconstruct()
|
void |
reset()
Delete computed results, and resets attributes to default values |
JamaMatrix |
solve(MatrixStore<Double> aRHS)
Internally this implementation uses the pseudoinverse that is recreated with every call. |
JamaMatrix |
solve(MatrixStore<Double> aRHS,
DecompositionStore<Double> preallocated)
Makes no use of preallocated at all. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ojalgo.matrix.decomposition.MatrixDecomposition |
|---|
compute, equals, getInverse, solve |
| Constructor Detail |
|---|
public JamaSingularValue()
| Method Detail |
|---|
public boolean compute(Access2D<?> aMtrx,
boolean singularValuesOnly)
compute in interface SingularValue<Double>aMtrx - A matrix to decomposesingularValuesOnly - No need to calculate eigenvectors
public boolean equals(MatrixStore<Double> aStore,
NumberContext aCntxt)
equals in interface MatrixDecomposition<Double>public double getCondition()
SingularValue
getCondition in interface SingularValue<Double>public JamaMatrix getD()
getD in interface SingularValue<Double>public double getFrobeniusNorm()
SingularValue
getFrobeniusNorm in interface SingularValue<Double>public JamaMatrix getInverse()
MatrixDecomposition
getInverse in interface MatrixDecomposition<Double>BasicMatrix.invert()public double 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<Double>k - The number of singular values to add up.
public double getOperatorNorm()
getOperatorNorm in interface SingularValue<Double>public JamaMatrix getQ1()
getQ1 in interface SingularValue<Double>public JamaMatrix getQ2()
getQ2 in interface SingularValue<Double>public int getRank()
SingularValue
getRank in interface SingularValue<Double>public Array1D<Double> getSingularValues()
getSingularValues in interface SingularValue<Double>public double getTraceNorm()
getTraceNorm in interface SingularValue<Double>public boolean isAspectRatioNormal()
public boolean isComputed()
isComputed in interface MatrixDecomposition<Double>MatrixDecomposition.compute(Access2D),
MatrixDecomposition.isSolvable()public boolean isFullSize()
isFullSize in interface MatrixDecomposition<Double>public boolean isOrdered()
isOrdered in interface SingularValue<Double>public boolean isSolvable()
isSolvable in interface MatrixDecomposition<Double>MatrixDecomposition.solve(MatrixStore),
MatrixDecomposition.isComputed()public MatrixStore<Double> reconstruct()
reconstruct in interface MatrixDecomposition<Double>public void reset()
MatrixDecomposition
reset in interface MatrixDecomposition<Double>public JamaMatrix solve(MatrixStore<Double> aRHS)
solve in interface MatrixDecomposition<Double>public String toString()
toString in class Objectpublic final boolean compute(Access2D<?> aStore)
compute in interface MatrixDecomposition<Double>aStore - A matrix to decompose
public final boolean equals(MatrixDecomposition<Double> aDecomp,
NumberContext aCntxt)
equals in interface MatrixDecomposition<Double>public final MatrixStore<Double> getInverse(DecompositionStore<Double> preallocated)
preallocated at all. Simply delegates to getInverse().
getInverse in interface MatrixDecomposition<Double>preallocated - Preallocated memory for the results, possibly some
intermediate results. You must assume this is modified, but you
cannot assume it will contain the full/final/correct solution.
MatrixDecomposition.getInverse(org.ojalgo.matrix.decomposition.DecompositionStore)public final JamaMatrix invert(MatrixStore<Double> aStore)
public final JamaMatrix solve(MatrixStore<Double> aRHS,
DecompositionStore<Double> preallocated)
preallocated at all. Simply delegates to solve(MatrixStore).
solve in interface MatrixDecomposition<Double>aRHS - The Right Hand Side, wont be modfiedpreallocated - Preallocated memory for the results, possibly some
intermediate results. You must assume this is modified, but you
cannot assume it will contain the full/final/correct solution.
MatrixDecomposition.solve(org.ojalgo.matrix.store.MatrixStore, org.ojalgo.matrix.decomposition.DecompositionStore)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||