|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjml.matlab.utils.SingularValueDecompositionImpl.Solver
private static class SingularValueDecompositionImpl.Solver
Specialized solver.
Field Summary | |
---|---|
private boolean |
nonSingular
Singularity indicator. |
private org.apache.commons.math.linear.RealMatrix |
pseudoInverse
Pseudo-inverse of the initial matrix. |
Constructor Summary | |
---|---|
private |
SingularValueDecompositionImpl.Solver(double[] singularValues,
org.apache.commons.math.linear.RealMatrix uT,
org.apache.commons.math.linear.RealMatrix v,
boolean nonSingular)
Build a solver from decomposed matrix. |
Method Summary | |
---|---|
org.apache.commons.math.linear.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. |
org.apache.commons.math.linear.RealMatrix |
solve(org.apache.commons.math.linear.RealMatrix b)
Solve the linear equation A × X = B in least square sense. |
org.apache.commons.math.linear.RealVector |
solve(org.apache.commons.math.linear.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 org.apache.commons.math.linear.RealMatrix pseudoInverse
private boolean nonSingular
Constructor Detail |
---|
private SingularValueDecompositionImpl.Solver(double[] singularValues, org.apache.commons.math.linear.RealMatrix uT, org.apache.commons.math.linear.RealMatrix v, boolean nonSingular)
singularValues
- Singular values.uT
- UT matrix of the decomposition.v
- V matrix of the decomposition.nonSingular
- Singularity indicator.Method Detail |
---|
public double[] solve(double[] b)
The m×n matrix A may not be square, the solution X is such that ||A × X - B|| is minimal.
solve
in interface org.apache.commons.math.linear.DecompositionSolver
b
- Right-hand side of the equation A × X = B
org.apache.commons.math.exception.DimensionMismatchException
- if the matrices dimensions do not match.public org.apache.commons.math.linear.RealVector solve(org.apache.commons.math.linear.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 org.apache.commons.math.linear.DecompositionSolver
b
- Right-hand side of the equation A × X = B
org.apache.commons.math.exception.DimensionMismatchException
- if the matrices dimensions do not match.public org.apache.commons.math.linear.RealMatrix solve(org.apache.commons.math.linear.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 org.apache.commons.math.linear.DecompositionSolver
b
- Right-hand side of the equation A × X = B
org.apache.commons.math.exception.DimensionMismatchException
- if the matrices dimensions do not match.public boolean isNonSingular()
isNonSingular
in interface org.apache.commons.math.linear.DecompositionSolver
true
if the decomposed matrix is non-singular.public org.apache.commons.math.linear.RealMatrix getInverse()
getInverse
in interface org.apache.commons.math.linear.DecompositionSolver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |