|
Stratimikos Package Browser (Single Doxygen Collection)
Version of the Day
|
Simple example of a user's defined Tpetra::Operator class. More...
#include <MyOperator.hpp>
Inherits Operator< OrdinalType, ScalarType >.
Public Member Functions | |
| MyOperator (const Tpetra::VectorSpace< OrdinalType, ScalarType > &vs, const int nrows, const int *colptr, const int nnz, const int *rowin, const ScalarType *vals) | |
| Constructor. More... | |
| ~MyOperator () | |
| Deconstructor. More... | |
Functions Overridden from Tpetra::Operator. | |
| typedef std::vector< ScalarType >::iterator | STIter |
| typedef std::vector< int >::iterator | IntIter |
| Tpetra::VectorSpace< OrdinalType, ScalarType > | _vs |
| Tpetra std::vector space. More... | |
| int | _nr |
| Number of rows and columns. More... | |
| int | _nnz |
| std::vector< int > | _cptr |
| Column pointers. More... | |
| std::vector< int > | _rind |
| Row indices. More... | |
| std::vector< ScalarType > | _vals |
| Values. More... | |
| Tpetra::VectorSpace< OrdinalType, ScalarType > const & | getDomainDist () const |
| Returns the VectorSpace associated with the domain of this linear operator. More... | |
| Tpetra::VectorSpace< OrdinalType, ScalarType > const & | getRangeDist () const |
| Returns the VectorSpace associated with the range of this linear operator. More... | |
| void | apply (Tpetra::Vector< OrdinalType, ScalarType > const &x, Tpetra::Vector< OrdinalType, ScalarType > &y, bool transpose=false) const |
| Computes the matrix-std::vector multiplication y = Ax. More... | |
Simple example of a user's defined Tpetra::Operator class.
This is a simple, single processor example of user's defined Tpetra::Operator-derived class. The class is templated on OrdinalType and ScalarType; possible choices are, for example, "float", "double", or "std::complex<double>".
Definition at line 63 of file MyOperator.hpp.
|
private |
Definition at line 126 of file MyOperator.hpp.
|
private |
Definition at line 133 of file MyOperator.hpp.
|
inline |
Constructor.
Definition at line 69 of file MyOperator.hpp.
|
inline |
Deconstructor.
Definition at line 80 of file MyOperator.hpp.
|
inline |
Returns the VectorSpace associated with the domain of this linear operator.
Definition at line 88 of file MyOperator.hpp.
|
inline |
Returns the VectorSpace associated with the range of this linear operator.
Definition at line 91 of file MyOperator.hpp.
|
inline |
Computes the matrix-std::vector multiplication y = Ax.
Definition at line 94 of file MyOperator.hpp.
|
private |
Tpetra std::vector space.
Definition at line 136 of file MyOperator.hpp.
|
private |
Number of rows and columns.
Definition at line 139 of file MyOperator.hpp.
|
private |
Definition at line 139 of file MyOperator.hpp.
|
private |
Column pointers.
Definition at line 141 of file MyOperator.hpp.
|
private |
Row indices.
Definition at line 143 of file MyOperator.hpp.
|
private |
Values.
Definition at line 145 of file MyOperator.hpp.
1.8.16