|
VMTK
|
Serves as the base container holding sparse matrix objects that represent a linear system of equations Ax = B. More...
#include <vtkvmtkLinearSystem.h>
Public Types | |
| typedef vtkObject | Superclass |
Public Member Functions | |
| virtual int | IsA (const char *type) |
| vtkvmtkLinearSystem * | NewInstance () const |
| int | CheckSystem () |
| virtual void | SetA (vtkvmtkSparseMatrix *) |
| virtual vtkvmtkSparseMatrix * | GetA () |
| virtual void | SetX (vtkvmtkDoubleVector *) |
| virtual vtkvmtkDoubleVector * | GetX () |
| virtual void | SetB (vtkvmtkDoubleVector *) |
| virtual vtkvmtkDoubleVector * | GetB () |
Static Public Member Functions | |
| static vtkvmtkLinearSystem * | New () |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkLinearSystem * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkvmtkLinearSystem () | |
| ~vtkvmtkLinearSystem () | |
Protected Attributes | |
| vtkvmtkSparseMatrix * | A |
| vtkvmtkDoubleVector * | X |
| vtkvmtkDoubleVector * | B |
Serves as the base container holding sparse matrix objects that represent a linear system of equations Ax = B.
vtkvmtkLinearSystem is a plain container for the three pieces of a linear system A x = B: the sparse system matrix A, the unknown vector X, and the right-hand side vector B. CheckSystem() validates that all three are set and that their sizes are mutually consistent (number of rows of A matches the number of elements of X and B). It carries no solution logic itself; it is passed to a vtkvmtkLinearSystemSolver (which reads/writes A, X, B) and is the type of system that vtkvmtkBoundaryConditions/vtkvmtkDirichletBoundaryConditions modify to impose boundary conditions, and that vtkvmtkFEAssembler subclasses populate during assembly.
Definition at line 43 of file vtkvmtkLinearSystem.h.
| typedef vtkObject vtkvmtkLinearSystem::Superclass |
Definition at line 47 of file vtkvmtkLinearSystem.h.
|
protected |
Definition at line 28 of file vtkvmtkLinearSystem.cxx.
|
protected |
|
static |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
| vtkvmtkLinearSystem * vtkvmtkLinearSystem::NewInstance | ( | ) | const |
|
virtual |
Set/get the sparse system matrix A.
|
virtual |
Set/get the sparse system matrix A.
|
virtual |
Set/get the unknown vector X (i.e. the solution of A x = B, filled in by a vtkvmtkLinearSystemSolver).
|
virtual |
Set/get the unknown vector X (i.e. the solution of A x = B, filled in by a vtkvmtkLinearSystemSolver).
|
virtual |
Set/get the right-hand side vector B.
|
virtual |
Set/get the right-hand side vector B.
| int vtkvmtkLinearSystem::CheckSystem | ( | ) |
Verify that A, X and B are all set and that their sizes are consistent (number of rows of A equals the number of elements of both X and B). Returns 0 if the system is valid, -1 otherwise (also emitting an error message describing the problem).
Definition at line 56 of file vtkvmtkLinearSystem.cxx.
|
protected |
Definition at line 85 of file vtkvmtkLinearSystem.h.
|
protected |
Definition at line 86 of file vtkvmtkLinearSystem.h.
|
protected |
Definition at line 87 of file vtkvmtkLinearSystem.h.