|
Belos Version of the Day
|
Belos's templated pure virtual class for constructing the operator that is used by the linear solver. More...
#include <BelosOperator.hpp>
Public Member Functions | |
Constructor/Destructor | |
| Operator () | |
| Default constructor. | |
| virtual | ~Operator () |
| Destructor. | |
Operator application method | |
| virtual void | Apply (const MultiVec< ScalarType > &x, MultiVec< ScalarType > &y, ETrans trans=NOTRANS) const =0 |
This routine takes the Belos::MultiVec x and applies the operator to it resulting in the Belos::MultiVec y, which is returned. | |
Belos's templated pure virtual class for constructing the operator that is used by the linear solver.
This operator is used as the interface to the matrix (A), solution (X), and right-hand side (B) of the linear system AX = B. Furthermore, it is also the interface to left/right preconditioning and left/right scaling of the linear system.
A concrete implementation of this class is necessary. The user can create their own implementation if those supplied are not suitable for their needs.
Definition at line 73 of file BelosOperator.hpp.
| Belos::Operator< ScalarType >::Operator | ( | ) | [inline] |
Default constructor.
Definition at line 80 of file BelosOperator.hpp.
| virtual Belos::Operator< ScalarType >::~Operator | ( | ) | [inline, virtual] |
Destructor.
Definition at line 83 of file BelosOperator.hpp.
| virtual void Belos::Operator< ScalarType >::Apply | ( | const MultiVec< ScalarType > & | x, |
| MultiVec< ScalarType > & | y, | ||
| ETrans | trans = NOTRANS |
||
| ) | const [pure virtual] |
This routine takes the Belos::MultiVec x and applies the operator to it resulting in the Belos::MultiVec y, which is returned.
x will be indicated by an std::exception being thrown.
1.7.4