|
Tpetra Matrix/Vector Services
Version of the Day
|
A class for wrapping an Operator apply in a Operator. More...
#include <Tpetra_ApplyOp.hpp>

Public Types | |
| typedef OperatorType::scalar_type | scalar_type |
| The type of the entries of the input OperatorType. More... | |
| typedef OperatorType::local_ordinal_type | local_ordinal_type |
| The type of local indices in the input OperatorType. More... | |
| typedef OperatorType::global_ordinal_type | global_ordinal_type |
| The type of global indices in the input OperatorType. More... | |
| typedef OperatorType::node_type | node_type |
| The type of the Kokkos Node used by the input OperatorType. More... | |
| typedef Teuchos::ScalarTraits < scalar_type >::magnitudeType | magnitude_type |
| The type of the magnitude (absolute value) of a matrix entry. More... | |
Public Member Functions | |
Constructor and destructor | |
| ApplyOp (const Teuchos::RCP< const OperatorType > &op) | |
| Constructor. More... | |
| virtual | ~ApplyOp () |
| Destructor. More... | |
Methods implementing Operator | |
| void | apply (const Tpetra::MultiVector< Scalar, local_ordinal_type, global_ordinal_type, node_type > &X, Tpetra::MultiVector< Scalar, local_ordinal_type, global_ordinal_type, node_type > &Y, Teuchos::ETransp mode=Teuchos::NO_TRANS, Scalar alpha=Teuchos::ScalarTraits< Scalar >::one(), Scalar beta=Teuchos::ScalarTraits< Scalar >::zero()) const |
Compute Y = beta*Y + alpha*Op(A)*X, where Op(A) is either A, , or . More... | |
| bool | hasTransposeApply () const |
| Whether this Operator's apply() method can apply the transpose or conjugate transpose. More... | |
| const Teuchos::RCP< const Tpetra::Map < local_ordinal_type, global_ordinal_type, node_type > > & | getDomainMap () const |
| The domain Map of this Operator. More... | |
| const Teuchos::RCP< const Tpetra::Map < local_ordinal_type, global_ordinal_type, node_type > > & | getRangeMap () const |
| The range Map of this Operator. More... | |
Protected Attributes | |
| const Teuchos::RCP< const OperatorType > | operator_ |
| The underlying Operator object. More... | |
A class for wrapping an Operator apply in a Operator.
This class makes a Operator<OpScalar, ...> "look
like" an Operator<Scalar, ...>, where OpScalar and Scalar may be different types. It does so by working around a limitation of C++, namely that template methods of a class can't be virtual.
| Scalar | The type of the entries of the input and output MultiVector of the apply() method. Same as the first template parameter of Operator. |
| OperatorType | The type of the underlying Operator, whose first template parameter OperatorType::scalar_type may be different than this Operator's Scalar type. |
Definition at line 86 of file Tpetra_ApplyOp.hpp.
| typedef OperatorType::scalar_type Tpetra::details::ApplyOp< Scalar, OperatorType >::scalar_type |
The type of the entries of the input OperatorType.
Definition at line 94 of file Tpetra_ApplyOp.hpp.
| typedef OperatorType::local_ordinal_type Tpetra::details::ApplyOp< Scalar, OperatorType >::local_ordinal_type |
The type of local indices in the input OperatorType.
Definition at line 97 of file Tpetra_ApplyOp.hpp.
| typedef OperatorType::global_ordinal_type Tpetra::details::ApplyOp< Scalar, OperatorType >::global_ordinal_type |
The type of global indices in the input OperatorType.
Definition at line 100 of file Tpetra_ApplyOp.hpp.
| typedef OperatorType::node_type Tpetra::details::ApplyOp< Scalar, OperatorType >::node_type |
The type of the Kokkos Node used by the input OperatorType.
Definition at line 103 of file Tpetra_ApplyOp.hpp.
| typedef Teuchos::ScalarTraits<scalar_type>::magnitudeType Tpetra::details::ApplyOp< Scalar, OperatorType >::magnitude_type |
The type of the magnitude (absolute value) of a matrix entry.
Definition at line 106 of file Tpetra_ApplyOp.hpp.
|
inline |
Constructor.
| A | [in] The Operator to wrap as an Operator<Scalar, ...>. |
Definition at line 117 of file Tpetra_ApplyOp.hpp.
|
inlinevirtual |
Destructor.
Definition at line 123 of file Tpetra_ApplyOp.hpp.
|
inlinevirtual |
Compute Y = beta*Y + alpha*Op(A)*X, where Op(A) is either A,
, or
.
This method calls the underlying Operator object's applyTempl<Scalar,Scalar>() method.
Definition at line 137 of file Tpetra_ApplyOp.hpp.
|
inlinevirtual |
Whether this Operator's apply() method can apply the transpose or conjugate transpose.
This is always true, since it is true for the Operator that this object wraps.
Reimplemented from Tpetra::Operator< Scalar, OperatorType::local_ordinal_type, OperatorType::global_ordinal_type, OperatorType::node_type >.
Definition at line 152 of file Tpetra_ApplyOp.hpp.
|
inlinevirtual |
The domain Map of this Operator.
Definition at line 158 of file Tpetra_ApplyOp.hpp.
|
inlinevirtual |
The range Map of this Operator.
Definition at line 164 of file Tpetra_ApplyOp.hpp.
|
protected |
The underlying Operator object.
Definition at line 174 of file Tpetra_ApplyOp.hpp.
1.8.5