Thyra Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 

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 Thyra::TpetraObjectExtraction<Scalar,LO,GO,Node> TOE;
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 144 of file Thyra_TpetraThyraWrappers_decl.hpp.

Member Function Documentation

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
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 189 of file Thyra_TpetraThyraWrappers_def.hpp.

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
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 199 of file Thyra_TpetraThyraWrappers_def.hpp.

Referenced by Thyra::TpetraLinearOp< Scalar, LocalOrdinal, GlobalOrdinal, Node >::getRowStatImpl().

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
RCP< const Tpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Thyra::TpetraOperatorVectorExtraction< Scalar, LocalOrdinal, GlobalOrdinal, Node >::getConstTpetraVector ( const RCP< const VectorBase< Scalar > > &  v)
static
template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
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 219 of file Thyra_TpetraThyraWrappers_def.hpp.

References nonnull(), Teuchos::null, TEUCHOS_ASSERT, TEUCHOS_TEST_FOR_EXCEPTION, and TEUCHOS_UNREACHABLE_RETURN.

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
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 256 of file Thyra_TpetraThyraWrappers_def.hpp.

References nonnull(), Teuchos::null, TEUCHOS_ASSERT, TEUCHOS_TEST_FOR_EXCEPTION, and TEUCHOS_UNREACHABLE_RETURN.

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
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 293 of file Thyra_TpetraThyraWrappers_def.hpp.

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
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 303 of file Thyra_TpetraThyraWrappers_def.hpp.


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