HLIBpro
1.2
|
Implements an iterative solver automatically choosing appropriate algorithm based on matrix criteria.
#include <TAutoSolver.hh>
Public Member Functions | |
TAutoSolver (const uint max_iter=100, const real abs_res_red=real(1e-8), const real rel_res_red=real(1e-8), const real rel_res_growth=real(1e6)) | |
construct auto solver object with corresponding stop criteria | |
virtual void | solve (const TMatrix *A, TVector *x, const TVector *b, const TMatrix *W=NULL, TInfo *data=NULL) const |
solve A·x = b with optional preconditioner W | |
Public Member Functions inherited from TSolver | |
TSolver (const uint max_iter=100, const real abs_res_red=real(1e-8), const real rel_res_red=real(1e-8), const real rel_res_growth=real(1e6)) | |
construct Richardson solver object with corresponding stop criteria | |
virtual | ~TSolver () |
dtor | |
virtual bool | stop (const uint it, const real norm, const real norm0, TInfo *info) const |
return true if stop condition is met | |
virtual void | set_stop_crit (const uint max_iter=100, const real abs_res_red=real(1e-8), const real rel_res_red=real(1e-8), const real rel_res_growth=real(1e6)) |
set stop criterion |
Additional Inherited Members | |
Protected Attributes inherited from TSolver | |
uint | _max_iter |
maximal number of iterations | |
real | _abs_res_reduct |
absolute reduction of residual norm | |
real | _rel_res_reduct |
relative reduction of residual norm compared to start residual | |
real | _rel_res_growth |
maximal relative growth of residual norm compared to start residual |