|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math3.linear.EigenDecomposition.Solver
private static class EigenDecomposition.Solver
Specialized solver.
Field Summary | |
---|---|
private ArrayRealVector[] |
eigenvectors
Eigenvectors. |
private double[] |
imagEigenvalues
Imaginary part of the realEigenvalues. |
private double[] |
realEigenvalues
Real part of the realEigenvalues. |
Constructor Summary | |
---|---|
private |
EigenDecomposition.Solver(double[] realEigenvalues,
double[] imagEigenvalues,
ArrayRealVector[] eigenvectors)
Builds a solver from decomposed matrix. |
Method Summary | |
---|---|
RealMatrix |
getInverse()
Get the inverse of the decomposed matrix. |
boolean |
isNonSingular()
Checks whether the decomposed matrix is non-singular. |
RealMatrix |
solve(RealMatrix b)
Solve the linear equation A × X = B for matrices A. |
RealVector |
solve(RealVector b)
Solves the linear equation A × X = B for symmetric matrices A. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private double[] realEigenvalues
private double[] imagEigenvalues
private final ArrayRealVector[] eigenvectors
Constructor Detail |
---|
private EigenDecomposition.Solver(double[] realEigenvalues, double[] imagEigenvalues, ArrayRealVector[] eigenvectors)
realEigenvalues
- Real parts of the eigenvalues.imagEigenvalues
- Imaginary parts of the eigenvalues.eigenvectors
- Eigenvectors.Method Detail |
---|
public RealVector solve(RealVector b)
This method only finds exact linear solutions, i.e. solutions for which ||A × X - B|| is exactly 0.
solve
in interface DecompositionSolver
b
- Right-hand side of the equation A × X = B.
DimensionMismatchException
- if the matrices dimensions do not match.
SingularMatrixException
- if the decomposed matrix is singular.public RealMatrix solve(RealMatrix b)
The A matrix is implicit, it is provided by the underlying decomposition algorithm.
solve
in interface DecompositionSolver
b
- right-hand side of the equation A × X = B
public boolean isNonSingular()
isNonSingular
in interface DecompositionSolver
public RealMatrix getInverse()
getInverse
in interface DecompositionSolver
SingularMatrixException
- if the decomposed matrix is singular.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |