Thyra Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
Thyra::TpetraOperatorVectorExtraction< Scalar, LocalOrdinal, GlobalOrdinal, Node > Class Template Reference

Traits class that enables the extraction of Tpetra operator/vector objects wrapped in Thyra operator/vector objects. More...

#include <Thyra_TpetraThyraWrappers_decl.hpp>

Static Public Member Functions

static RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > getTpetraMap (const RCP< const VectorSpaceBase< Scalar > > &vs)
 Get a const Tpetra::Map from a const Thyra::VectorSpaceBase object.
 
static RCP< Tpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > getTpetraVector (const RCP< VectorBase< Scalar > > &v)
 Get a non-const Tpetra::Vector from a non-const Thyra::VectorBase object.
 
static RCP< const Tpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > getConstTpetraVector (const RCP< const VectorBase< Scalar > > &v)
 Get a const Tpetra::Vector from a const Thyra::VectorBase object.
 
static RCP< Tpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > getTpetraMultiVector (const RCP< MultiVectorBase< Scalar > > &mv)
 Get a non-const Tpetra::MultiVector from a non-const Thyra::MultiVectorBase object.
 
static RCP< const Tpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > getConstTpetraMultiVector (const RCP< const MultiVectorBase< Scalar > > &mv)
 Get a const Tpetra::MultiVector from a const Thyra::MultiVectorBase object.
 
static RCP< Tpetra::Operator< Scalar, LocalOrdinal, GlobalOrdinal, Node > > getTpetraOperator (const RCP< LinearOpBase< Scalar > > &op)
 Get a non-const Tpetra::Operator from a non-const Thyra::LinearOpBase object.
 
static RCP< const Tpetra::Operator< Scalar, LocalOrdinal, GlobalOrdinal, Node > > getConstTpetraOperator (const RCP< const LinearOpBase< Scalar > > &op)
 Get a const Tpetra::Operator from a const Thyra::LinearOpBase object.
 

Detailed Description

template<class Scalar = Tpetra::Vector<>::scalar_type, class LocalOrdinal = Tpetra::Vector<>::local_ordinal_type, class GlobalOrdinal = Tpetra::Vector<>::global_ordinal_type, class Node = Tpetra::Vector<>::node_type>
class Thyra::TpetraOperatorVectorExtraction< Scalar, LocalOrdinal, GlobalOrdinal, Node >

Traits class that enables the extraction of Tpetra operator/vector objects wrapped in Thyra operator/vector objects.

Example usage:

typedef Tpetra::MultiVector<Scalar,LO,GO,Node> TpetraMultiVector_t;
RCP<TpetraMultiVector_t> tpetraMv = TOE::getTpetraMultiVector(thyraMv);
RCP<TpetraVector_t> tpetraV = TOE::getTpetraVector(thyraV);
Todo
Finish documentation

Definition at line 176 of file Thyra_TpetraThyraWrappers_decl.hpp.

Member Function Documentation

◆ getTpetraMap()

RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > Thyra::TpetraOperatorVectorExtraction< Scalar, LocalOrdinal, GlobalOrdinal, Node >::getTpetraMap ( const RCP< const VectorSpaceBase< Scalar > > & vs)
static

Get a const Tpetra::Map from a const Thyra::VectorSpaceBase object.

Definition at line 220 of file Thyra_TpetraThyraWrappers_def.hpp.

References Teuchos::RCP< class T >::RCP().

◆ getTpetraVector()

RCP< Tpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Thyra::TpetraOperatorVectorExtraction< Scalar, LocalOrdinal, GlobalOrdinal, Node >::getTpetraVector ( const RCP< VectorBase< Scalar > > & v)
static

Get a non-const Tpetra::Vector from a non-const Thyra::VectorBase object.

Definition at line 230 of file Thyra_TpetraThyraWrappers_def.hpp.

References Teuchos::RCP< class T >::RCP().

◆ getConstTpetraVector()

RCP< const Tpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Thyra::TpetraOperatorVectorExtraction< Scalar, LocalOrdinal, GlobalOrdinal, Node >::getConstTpetraVector ( const RCP< const VectorBase< Scalar > > & v)
static

Get a const Tpetra::Vector from a const Thyra::VectorBase object.

Definition at line 240 of file Thyra_TpetraThyraWrappers_def.hpp.

References Teuchos::RCP< class T >::RCP().

◆ getTpetraMultiVector()

RCP< Tpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Thyra::TpetraOperatorVectorExtraction< Scalar, LocalOrdinal, GlobalOrdinal, Node >::getTpetraMultiVector ( const RCP< MultiVectorBase< Scalar > > & mv)
static

Get a non-const Tpetra::MultiVector from a non-const Thyra::MultiVectorBase object.

Definition at line 250 of file Thyra_TpetraThyraWrappers_def.hpp.

References Teuchos::RCP< class T >::nonnull(), Teuchos::RCP< class T >::RCP(), TEUCHOS_ASSERT, TEUCHOS_TEST_FOR_EXCEPTION, and TEUCHOS_UNREACHABLE_RETURN.

◆ getConstTpetraMultiVector()

RCP< const Tpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Thyra::TpetraOperatorVectorExtraction< Scalar, LocalOrdinal, GlobalOrdinal, Node >::getConstTpetraMultiVector ( const RCP< const MultiVectorBase< Scalar > > & mv)
static

Get a const Tpetra::MultiVector from a const Thyra::MultiVectorBase object.

Definition at line 287 of file Thyra_TpetraThyraWrappers_def.hpp.

References Teuchos::RCP< class T >::nonnull(), Teuchos::RCP< class T >::RCP(), TEUCHOS_ASSERT, TEUCHOS_TEST_FOR_EXCEPTION, and TEUCHOS_UNREACHABLE_RETURN.

◆ getTpetraOperator()

RCP< Tpetra::Operator< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Thyra::TpetraOperatorVectorExtraction< Scalar, LocalOrdinal, GlobalOrdinal, Node >::getTpetraOperator ( const RCP< LinearOpBase< Scalar > > & op)
static

Get a non-const Tpetra::Operator from a non-const Thyra::LinearOpBase object.

Definition at line 324 of file Thyra_TpetraThyraWrappers_def.hpp.

References Teuchos::RCP< class T >::RCP().

◆ getConstTpetraOperator()

RCP< const Tpetra::Operator< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Thyra::TpetraOperatorVectorExtraction< Scalar, LocalOrdinal, GlobalOrdinal, Node >::getConstTpetraOperator ( const RCP< const LinearOpBase< Scalar > > & op)
static

Get a const Tpetra::Operator from a const Thyra::LinearOpBase object.

Definition at line 334 of file Thyra_TpetraThyraWrappers_def.hpp.

References Teuchos::RCP< class T >::RCP().


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