public class Chebyshev extends AbstractIterativeSolver
Ax = b using the Preconditioned Chebyshev Method. Chebyshev
requires an acurate estimate on the bounds of the spectrum of the matrix.iter, M| Constructor and Description |
|---|
Chebyshev(Vector template,
double eigmin,
double eigmax)
Constructor for Chebyshev.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setEigenvalues(double eigmin,
double eigmax)
Sets the eigenvalue estimates.
|
Vector |
solve(Matrix A,
Vector b,
Vector x)
Solves the given problem, writing result into the vector.
|
checkSizes, getIterationMonitor, getPreconditioner, setIterationMonitor, setPreconditionerpublic Chebyshev(Vector template, double eigmin, double eigmax)
template - Vector to use as template for the work vectors needed in the
solution processeigmin - Smallest eigenvalue. Must be positiveeigmax - Largest eigenvalue. Must be positivepublic void setEigenvalues(double eigmin,
double eigmax)
eigmin - Smallest eigenvalue. Must be positiveeigmax - Largest eigenvalue. Must be positivepublic Vector solve(Matrix A, Vector b, Vector x) throws IterativeSolverNotConvergedException
IterativeSolverA - Matrix of the problemb - Right hand sidex - Solution is stored here. Also used as initial guessIterativeSolverNotConvergedExceptionCopyright © 2015. All Rights Reserved.