Thyra Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Thyra::TpetraExplicitAdjointModelEvaluator< Scalar, LocalOrdinal, GlobalOrdinal, Node > Class Template Reference

A model evaluator decorator for computing an explicit adjoint. More...

#include <Thyra_TpetraExplicitAdjointModelEvaluator.hpp>

Inherits ModelEvaluatorDelegatorBase< Scalar >.

Public Member Functions

 TpetraExplicitAdjointModelEvaluator (const RCP< const ModelEvaluator< Scalar > > &model)
 Constructor. More...
 
 TpetraExplicitAdjointModelEvaluator (const RCP< ModelEvaluator< Scalar > > &model)
 Constructor. More...
 
virtual ~TpetraExplicitAdjointModelEvaluator ()=default
 Destructor. More...
 
ModelEvaluatorBase::InArgs
< Scalar > 
createInArgs () const
 
RCP< LinearOpBase< Scalar > > create_W_op () const
 

Private Member Functions

ModelEvaluatorBase::OutArgs
< Scalar > 
createOutArgsImpl () const
 
void evalModelImpl (const ModelEvaluatorBase::InArgs< Scalar > &inArgs, const ModelEvaluatorBase::OutArgs< Scalar > &outArgs) const
 

Private Attributes

RCP< Thyra::LinearOpBase
< Scalar > > 
thyra_fwd_op
 

Detailed Description

template<typename Scalar, typename LocalOrdinal, typename GlobalOrdinal = LocalOrdinal, typename Node = Tpetra::KokkosClassic::DefaultNode::DefaultNodeType>
class Thyra::TpetraExplicitAdjointModelEvaluator< Scalar, LocalOrdinal, GlobalOrdinal, Node >

A model evaluator decorator for computing an explicit adjoint.

This ModelEvaluator only supports computing W_op and forms the adjoint by computing W_op from the underlying ModelEvaluator and then explicitly transposes it.

Since it derives from ModelEvaluatorDelegatorBase, it forwards all ModelEvaluator methods to the supplied underlying ModelEvaluator except those overloaded here.

Definition at line 30 of file Thyra_TpetraExplicitAdjointModelEvaluator.hpp.

Constructor & Destructor Documentation

template<typename Scalar , typename LocalOrdinal , typename GlobalOrdinal = LocalOrdinal, typename Node = Tpetra::KokkosClassic::DefaultNode::DefaultNodeType>
Thyra::TpetraExplicitAdjointModelEvaluator< Scalar, LocalOrdinal, GlobalOrdinal, Node >::TpetraExplicitAdjointModelEvaluator ( const RCP< const ModelEvaluator< Scalar > > &  model)
inline

Constructor.

Definition at line 35 of file Thyra_TpetraExplicitAdjointModelEvaluator.hpp.

template<typename Scalar , typename LocalOrdinal , typename GlobalOrdinal = LocalOrdinal, typename Node = Tpetra::KokkosClassic::DefaultNode::DefaultNodeType>
Thyra::TpetraExplicitAdjointModelEvaluator< Scalar, LocalOrdinal, GlobalOrdinal, Node >::TpetraExplicitAdjointModelEvaluator ( const RCP< ModelEvaluator< Scalar > > &  model)
inline

Constructor.

Definition at line 40 of file Thyra_TpetraExplicitAdjointModelEvaluator.hpp.

template<typename Scalar , typename LocalOrdinal , typename GlobalOrdinal = LocalOrdinal, typename Node = Tpetra::KokkosClassic::DefaultNode::DefaultNodeType>
virtual Thyra::TpetraExplicitAdjointModelEvaluator< Scalar, LocalOrdinal, GlobalOrdinal, Node >::~TpetraExplicitAdjointModelEvaluator ( )
virtualdefault

Destructor.

Member Function Documentation

template<typename Scalar , typename LocalOrdinal , typename GlobalOrdinal = LocalOrdinal, typename Node = Tpetra::KokkosClassic::DefaultNode::DefaultNodeType>
ModelEvaluatorBase::InArgs<Scalar> Thyra::TpetraExplicitAdjointModelEvaluator< Scalar, LocalOrdinal, GlobalOrdinal, Node >::createInArgs ( ) const
inline
template<typename Scalar , typename LocalOrdinal , typename GlobalOrdinal = LocalOrdinal, typename Node = Tpetra::KokkosClassic::DefaultNode::DefaultNodeType>
RCP<LinearOpBase<Scalar> > Thyra::TpetraExplicitAdjointModelEvaluator< Scalar, LocalOrdinal, GlobalOrdinal, Node >::create_W_op ( ) const
inline
template<typename Scalar , typename LocalOrdinal , typename GlobalOrdinal = LocalOrdinal, typename Node = Tpetra::KokkosClassic::DefaultNode::DefaultNodeType>
ModelEvaluatorBase::OutArgs<Scalar> Thyra::TpetraExplicitAdjointModelEvaluator< Scalar, LocalOrdinal, GlobalOrdinal, Node >::createOutArgsImpl ( ) const
inlineprivate

Definition at line 82 of file Thyra_TpetraExplicitAdjointModelEvaluator.hpp.

References TEUCHOS_ASSERT.

template<typename Scalar , typename LocalOrdinal , typename GlobalOrdinal = LocalOrdinal, typename Node = Tpetra::KokkosClassic::DefaultNode::DefaultNodeType>
void Thyra::TpetraExplicitAdjointModelEvaluator< Scalar, LocalOrdinal, GlobalOrdinal, Node >::evalModelImpl ( const ModelEvaluatorBase::InArgs< Scalar > &  inArgs,
const ModelEvaluatorBase::OutArgs< Scalar > &  outArgs 
) const
inlineprivate

Member Data Documentation

template<typename Scalar , typename LocalOrdinal , typename GlobalOrdinal = LocalOrdinal, typename Node = Tpetra::KokkosClassic::DefaultNode::DefaultNodeType>
RCP< Thyra::LinearOpBase<Scalar> > Thyra::TpetraExplicitAdjointModelEvaluator< Scalar, LocalOrdinal, GlobalOrdinal, Node >::thyra_fwd_op
mutableprivate

The documentation for this class was generated from the following file: