Thyra Package Browser (Single Doxygen Collection) Version of the Day
Static Public Member Functions
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>

List of all members.

Static Public Member Functions

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, class LocalOrdinal, class GlobalOrdinal = LocalOrdinal, class Node = Kokkos::DefaultNode::DefaultNodeType>
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 174 of file Thyra_TpetraThyraWrappers_decl.hpp.


Member Function Documentation

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 221 of file Thyra_TpetraThyraWrappers_def.hpp.

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]

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

Definition at line 231 of file Thyra_TpetraThyraWrappers_def.hpp.

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 241 of file Thyra_TpetraThyraWrappers_def.hpp.

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

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 278 of file Thyra_TpetraThyraWrappers_def.hpp.

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

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 315 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 325 of file Thyra_TpetraThyraWrappers_def.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines