|
VMTK
|
Serves as the base class for linear-system-of-equations solver implementations. More...
#include <vtkvmtkLinearSystemSolver.h>
Public Types | |
| typedef vtkObject | Superclass |
Public Member Functions | |
| virtual int | IsA (const char *type) |
| vtkvmtkLinearSystemSolver * | NewInstance () const |
| virtual int | Solve () |
| virtual void | SetLinearSystem (vtkvmtkLinearSystem *) |
| virtual vtkvmtkLinearSystem * | GetLinearSystem () |
| virtual void | SetMaximumNumberOfIterations (int) |
| virtual int | GetMaximumNumberOfIterations () |
| virtual void | SetConvergenceTolerance (double) |
| virtual double | GetConvergenceTolerance () |
Static Public Member Functions | |
| static vtkvmtkLinearSystemSolver * | New () |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkLinearSystemSolver * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkvmtkLinearSystemSolver () | |
| ~vtkvmtkLinearSystemSolver () | |
Protected Attributes | |
| vtkvmtkLinearSystem * | LinearSystem |
| int | MaximumNumberOfIterations |
| double | ConvergenceTolerance |
| int | NumberOfIterations |
| double | Residual |
Serves as the base class for linear-system-of-equations solver implementations.
vtkvmtkLinearSystemSolver defines the common interface and iteration control parameters (MaximumNumberOfIterations, ConvergenceTolerance) for iterative solvers of a vtkvmtkLinearSystem. This base class implementation of Solve() only validates that LinearSystem is set and internally consistent (via vtkvmtkLinearSystem::CheckSystem()); concrete subclasses override Solve() to actually iterate towards a solution, updating NumberOfIterations and Residual as they progress.
Definition at line 39 of file vtkvmtkLinearSystemSolver.h.
| typedef vtkObject vtkvmtkLinearSystemSolver::Superclass |
Definition at line 43 of file vtkvmtkLinearSystemSolver.h.
|
protected |
Definition at line 29 of file vtkvmtkLinearSystemSolver.cxx.
|
protected |
Definition at line 40 of file vtkvmtkLinearSystemSolver.cxx.
|
static |
|
static |
|
virtual |
Reimplemented in vtkvmtkOpenNLLinearSystemSolver.
|
static |
|
protectedvirtual |
Reimplemented in vtkvmtkOpenNLLinearSystemSolver.
| vtkvmtkLinearSystemSolver * vtkvmtkLinearSystemSolver::NewInstance | ( | ) | const |
|
virtual |
Set/get the linear system to be solved.
|
virtual |
Set/get the linear system to be solved.
|
virtual |
Set/get the maximum number of iterations an iterative solver subclass is allowed to perform before giving up. Default: a very large integer (effectively unlimited).
|
virtual |
Set/get the maximum number of iterations an iterative solver subclass is allowed to perform before giving up. Default: a very large integer (effectively unlimited).
|
virtual |
Set/get the residual tolerance at which an iterative solver subclass considers the system to have converged. Default: 1E-4.
|
virtual |
Set/get the residual tolerance at which an iterative solver subclass considers the system to have converged. Default: 1E-4.
|
virtual |
Solve LinearSystem. This base class implementation only checks that LinearSystem is set and consistent (returning -1 and emitting an error if not); subclasses override this method to perform the actual solve, storing the number of iterations and residual reached in NumberOfIterations / Residual, and returning 0 on success or -1 on failure.
Reimplemented in vtkvmtkOpenNLLinearSystemSolver.
Definition at line 49 of file vtkvmtkLinearSystemSolver.cxx.
|
protected |
Definition at line 83 of file vtkvmtkLinearSystemSolver.h.
|
protected |
Definition at line 85 of file vtkvmtkLinearSystemSolver.h.
|
protected |
Definition at line 86 of file vtkvmtkLinearSystemSolver.h.
|
protected |
Definition at line 88 of file vtkvmtkLinearSystemSolver.h.
|
protected |
Definition at line 89 of file vtkvmtkLinearSystemSolver.h.