|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math3.linear.SingularValueDecomposition.Solver
private static class SingularValueDecomposition.Solver
Specialized solver.
Field Summary | |
---|---|
private boolean |
nonSingular
Singularity indicator. |
private RealMatrix |
pseudoInverse
Pseudo-inverse of the initial matrix. |
Constructor Summary | |
---|---|
private |
SingularValueDecomposition.Solver(double[] singularValues,
RealMatrix uT,
RealMatrix v,
boolean nonSingular,
double tol)
Build a solver from decomposed matrix. |
Method Summary | |
---|---|
RealMatrix |
getInverse()
Get the pseudo-inverse of the decomposed matrix. |
boolean |
isNonSingular()
Check if the decomposed matrix is non-singular. |
RealMatrix |
solve(RealMatrix b)
Solve the linear equation A × X = B in least square sense. |
RealVector |
solve(RealVector b)
Solve the linear equation A × X = B in least square sense. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final RealMatrix pseudoInverse
private boolean nonSingular
Constructor Detail |
---|
private SingularValueDecomposition.Solver(double[] singularValues, RealMatrix uT, RealMatrix v, boolean nonSingular, double tol)
singularValues
- Singular values.uT
- UT matrix of the decomposition.v
- V matrix of the decomposition.nonSingular
- Singularity indicator.tol
- tolerance for singular valuesMethod Detail |
---|
public RealVector solve(RealVector b)
The m×n matrix A may not be square, the solution X is such that ||A × X - B|| is minimal.
solve
in interface DecompositionSolver
b
- Right-hand side of the equation A × X = B
DimensionMismatchException
- if the matrices dimensions do not match.public RealMatrix solve(RealMatrix b)
The m×n matrix A may not be square, the solution X is such that ||A × X - B|| is minimal.
solve
in interface DecompositionSolver
b
- Right-hand side of the equation A × X = B
DimensionMismatchException
- if the matrices dimensions do not match.public boolean isNonSingular()
isNonSingular
in interface DecompositionSolver
true
if the decomposed matrix is non-singular.public RealMatrix getInverse()
getInverse
in interface DecompositionSolver
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |