public class FloatChebyshev extends AbstractFloatIterativeSolver
Ax = b using the Preconditioned Chebyshev Method. Chebyshev
requires an acurate estimate on the bounds of the spectrum of the matrix.| Constructor and Description |
|---|
FloatChebyshev(FloatMatrix1D template,
float eigmin,
float eigmax)
Constructor for Chebyshev.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setEigenvalues(float eigmin,
float eigmax)
Sets the eigenvalue estimates.
|
FloatMatrix1D |
solve(FloatMatrix2D A,
FloatMatrix1D b,
FloatMatrix1D x)
Solves the given problem, writing result into the vector.
|
getIterationMonitor, getPreconditioner, setIterationMonitor, setPreconditionerpublic FloatChebyshev(FloatMatrix1D template, float eigmin, float 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(float eigmin,
float eigmax)
eigmin - Smallest eigenvalue. Must be positiveeigmax - Largest eigenvalue. Must be positivepublic FloatMatrix1D solve(FloatMatrix2D A, FloatMatrix1D b, FloatMatrix1D x) throws IterativeSolverFloatNotConvergedException
FloatIterativeSolverA - Matrix of the problemb - Right hand sidex - Solution is stored here. Also used as initial guessIterativeSolverFloatNotConvergedExceptionJump to the Parallel Colt Homepage