|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.commons.math.linear.SingularValueDecompositionImpl.Solver
private static class SingularValueDecompositionImpl.Solver
Specialized solver.
| Field Summary | |
|---|---|
private boolean |
nonSingular
Singularity indicator. |
private RealMatrix |
pseudoInverse
Pseudo-inverse of the initial matrix. |
| Constructor Summary | |
|---|---|
private |
SingularValueDecompositionImpl.Solver(double[] singularValues,
RealMatrix uT,
RealMatrix v,
boolean nonSingular)
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. |
double[] |
solve(double[] b)
Solve the linear equation A × X = B in least square sense. |
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 SingularValueDecompositionImpl.Solver(double[] singularValues,
RealMatrix uT,
RealMatrix v,
boolean nonSingular)
singularValues - singularValuesuT - UT matrix of the decompositionv - V matrix of the decompositionnonSingular - singularity indicator| Method Detail |
|---|
public double[] solve(double[] b)
throws IllegalArgumentException
The m×n matrix A may not be square, the solution X is such that ||A × X - B|| is minimal.
solve in interface DecompositionSolverb - right-hand side of the equation A × X = B
IllegalArgumentException - if matrices dimensions don't match
public RealVector solve(RealVector b)
throws IllegalArgumentException
The m×n matrix A may not be square, the solution X is such that ||A × X - B|| is minimal.
solve in interface DecompositionSolverb - right-hand side of the equation A × X = B
IllegalArgumentException - if matrices dimensions don't match
public RealMatrix solve(RealMatrix b)
throws IllegalArgumentException
The m×n matrix A may not be square, the solution X is such that ||A × X - B|| is minimal.
solve in interface DecompositionSolverb - right-hand side of the equation A × X = B
IllegalArgumentException - if matrices dimensions don't matchpublic boolean isNonSingular()
isNonSingular in interface DecompositionSolverpublic RealMatrix getInverse()
getInverse in interface DecompositionSolver
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||