|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.matrix.doubles.factorization.eigen.InverseIteration
public class InverseIteration
Inverse iteration is an iterative eigenvalue algorithm. It finds an approximate eigenvector when an approximation to an eigenvalue is already known. Inverse iteration does not apply when λ is the exact eigenvalue because (A - λI) is singular.
| Nested Class Summary | |
|---|---|
static interface |
InverseIteration.StoppingCriterion
This interface defines the convergence criterion. |
| Constructor Summary | |
|---|---|
InverseIteration(Matrix A,
double lambda)
Construct an instance of InverseIteration to find the corresponding eigenvector. |
|
InverseIteration(Matrix A,
double lambda,
InverseIteration.StoppingCriterion criterion)
Construct an instance of InverseIteration to find the corresponding eigenvector. |
|
| Method Summary | |
|---|---|
Vector |
getEigenVector()
Get an eigenvector. |
Vector |
getEigenVector(Vector v0,
int maxIterations)
Get an eigenvector from an initial guess. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InverseIteration(Matrix A,
double lambda,
InverseIteration.StoppingCriterion criterion)
A - a matrixlambda - an eigenvaluecriterion - a convergence criterion
public InverseIteration(Matrix A,
double lambda)
A - a matrixlambda - an eigenvalue| Method Detail |
|---|
public Vector getEigenVector(Vector v0,
int maxIterations)
v0 - an initial guess of eigenvectormaxIterations - the maximum number of iterations, e.g., 10
public Vector getEigenVector()
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||