Thyra Package Browser (Single Doxygen Collection) Version of the Day
Classes | Enumerations | Functions
Thyra Namespace Reference

Classes

class  DiagonalEpetraLinearOpWithSolveFactory
 Create a DefaultDiagonalLinearOpWithSolve out of a diagonal Epetra_RowMatrix object. More...
class  EpetraLinearOp
 Concrete LinearOpBase adapter subclass for Epetra_Operator object. More...
class  EpetraLinearOpBase
 Abstract base class for all LinearOpBase objects that can return an Epetra_Operator view of themselves and details about how to apply the view. More...
class  EpetraOperatorViewExtractorBase
 Strategy interface for extracting an Epetra_Operator view out of a Thyra::LinearOpBase<double> object. More...
class  EpetraOperatorViewExtractorStd
 Standard strategy subclass for extracting an Epetra_Operator view out of a Thyra::LinearOpBase<double> object by dynamic casting to the EpetraLinearOpBase interface. More...
class  EpetraOperatorWrapper
 Implements the Epetra_Operator interface with a Thyra LinearOperator. More...
class  EpetraModelEvaluator
 Concrete Adapter subclass that takes an EpetraExt::ModelEvaluator object and wraps it as a Thyra::ModelEvaluator object. More...
class  EpetraExtAddTransformer
 Transformer subclass for adding Epetra/Thyra operators using EpetraExt::MatrixMatrix. More...
class  EpetraExtDiagScaledMatProdTransformer
 Transformer subclass for diagonally scaling and multiplying Epetra/Thyra operators. More...
class  EpetraExtDiagScalingTransformer
 Transformer subclass for diagonally scaling a Epetra/Thyra operator. More...
class  TpetraLinearOp
 Concrete Thyra::LinearOpBase subclass for Tpetra::Operator. More...
class  TpetraMultiVector
 Concrete implementation of Thyra::MultiVector in terms of Tpetra::MultiVector. More...
class  TpetraOperatorVectorExtraction
 Traits class that enables the extraction of Tpetra operator/vector objects wrapped in Thyra operator/vector objects. More...
class  TpetraVector
 Concrete Thyra::SpmdVectorBase using Tpetra::Vector. More...
class  TpetraVectorSpace
 Concrete implementation of an SPMD vector space for Tpetra. More...

Enumerations

enum  EAdjointEpetraOp { EPETRA_OP_ADJOINT_SUPPORTED, EPETRA_OP_ADJOINT_UNSUPPORTED }
 Determine if adjoints are supported on Epetra_Opeator or not. More...
enum  EApplyEpetraOpAs { EPETRA_OP_APPLY_APPLY, EPETRA_OP_APPLY_APPLY_INVERSE }
 Determine how the apply an Epetra_Operator as a linear operator. More...

Functions

RCP< const Teuchos::Comm
< Ordinal > > 
create_Comm (const RCP< const Epetra_Comm > &epetraComm)
 Given an Epetra_Comm object, return an equivalent Teuchos::Comm object.
RCP< const VectorSpaceBase
< double > > 
create_VectorSpace (const RCP< const Epetra_Map > &epetra_map)
 Create an VectorSpaceBase object given an Epetra_Map object.
RCP< const VectorSpaceBase
< double > > 
create_LocallyReplicatedVectorSpace (const RCP< const VectorSpaceBase< double > > &parentSpace, const int dim)
 Create a VectorSpaceBase object that creates locally replicated vector objects.
RCP< VectorBase< double > > create_Vector (const RCP< Epetra_Vector > &epetra_v, const RCP< const VectorSpaceBase< double > > &space)
 Create a non-const VectorBase object from a non-const Epetra_Vector object.
RCP< const VectorBase< double > > create_Vector (const RCP< const Epetra_Vector > &epetra_v, const RCP< const VectorSpaceBase< double > > &space)
 Create an const VectorBase wrapper object for a const Epetra_Vector object.
RCP< MultiVectorBase< double > > create_MultiVector (const RCP< Epetra_MultiVector > &epetra_mv, const RCP< const VectorSpaceBase< double > > &range, const RCP< const VectorSpaceBase< double > > &domain=Teuchos::null)
 Create a non-const MultiVectorBase object from a non-const Epetra_MultiVector object.
RCP< const MultiVectorBase
< double > > 
create_MultiVector (const RCP< const Epetra_MultiVector > &epetra_mv, const RCP< const VectorSpaceBase< double > > &range, const RCP< const VectorSpaceBase< double > > &domain=Teuchos::null)
 Create an const MultiVectorBase wrapper object for a const Epetra_MultiVector object.
RCP< const Epetra_Comm > get_Epetra_Comm (const Teuchos::Comm< Ordinal > &comm)
 Get (or create) and Epetra_Comm given a Teuchos::Comm object.
RCP< const Epetra_Map > get_Epetra_Map (const VectorSpaceBase< double > &vs, const RCP< const Epetra_Comm > &comm)
 Get (or create) an Epetra_Map object given an VectorSpaceBase object an optionally an extra Epetra_Comm object.
RCP< Epetra_Vector > get_Epetra_Vector (const Epetra_Map &map, const RCP< VectorBase< double > > &v)
 Get a non-const Epetra_Vector view from a non-const VectorBase object if possible.
RCP< const Epetra_Vector > get_Epetra_Vector (const Epetra_Map &map, const RCP< const VectorBase< double > > &v)
 Get a const Epetra_Vector view from a const VectorBase object if possible.
RCP< Epetra_MultiVector > get_Epetra_MultiVector (const Epetra_Map &map, const RCP< MultiVectorBase< double > > &mv)
 Get a non-const Epetra_MultiVector view from a non-const MultiVectorBase object if possible.
RCP< const Epetra_MultiVector > get_Epetra_MultiVector (const Epetra_Map &map, const RCP< const MultiVectorBase< double > > &mv)
 Get a const Epetra_MultiVector view from a const MultiVectorBase object if possible.
Teuchos::RCP< Epetra_MultiVector > get_Epetra_MultiVector (const Epetra_Map &map, MultiVectorBase< double > &mv)
 Get a non-const Epetra_MultiVector view from a non-const MultiVectorBase object if possible where the client must maintain the memory of the input multivector.
Teuchos::RCP< const
Epetra_MultiVector > 
get_Epetra_MultiVector (const Epetra_Map &map, const MultiVectorBase< double > &mv)
 Get a const Epetra_MultiVector view from a const MultiVectorBase object if possible where the client must maintain the memory of the input multivector.
const std::string toString (const EAdjointEpetraOp adjointEpetraOp)
 
const std::string toString (const EApplyEpetraOpAs applyEpetraOpAs)
 
Teuchos::RCP< Epetra_Operator > get_Epetra_Operator (LinearOpBase< double > &op)
 Get smart pointer to non-const Epetra_Operator object from reference to a non-const EpetraLinearOp accessed through its LinearOpBase interface.
Teuchos::RCP< const
Epetra_Operator > 
get_Epetra_Operator (const LinearOpBase< double > &op)
 Get smart pointer to const Epetra_Operator object from reference to a const EpetraLinearOp accessed through its LinearOpBase interface.
 TEUCHOS_UNIT_TEST (EpetraOperatorWrapper, basic)
 TEUCHOS_UNIT_TEST (EpetraLinearOp, ScaledLinearOpBase)
 TEUCHOS_UNIT_TEST (EpetraLinearOp, RowStatLinearOpBase)
 TEUCHOS_UNIT_TEST (EpetraLinearOp, rectangular)
 TEUCHOS_UNIT_TEST (EpetraLinearOp, blocked_op)
 TEUCHOS_UNIT_TEST (EpetraLinearOpParallel, blocked_op)
RCP< const Teuchos::Comm
< Ordinal > > 
convertTpetraToThyraComm (const RCP< const Teuchos::Comm< int > > &tpetraComm)
 Given an Tpetra Teuchos::Comm<int> object, return an equivalent Teuchos::Comm<Ordinal> object.
template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
RCP< const VectorSpaceBase
< Scalar > > 
createVectorSpace (const RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > &tpetraMap)
 Create a Thyra::VectorSpaceBase object given a Tpetra::Map.
template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
RCP< VectorBase< Scalar > > createVector (const RCP< Tpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > &tpetraVector, const RCP< const VectorSpaceBase< Scalar > > space=Teuchos::null)
 
template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
RCP< const VectorBase< Scalar > > createConstVector (const RCP< const Tpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > &tpetraVector, const RCP< const VectorSpaceBase< Scalar > > space=Teuchos::null)
 
template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
RCP< MultiVectorBase< Scalar > > createMultiVector (const RCP< Tpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > &tpetraMultiVector, const RCP< const VectorSpaceBase< Scalar > > rangeSpace=Teuchos::null, const RCP< const VectorSpaceBase< Scalar > > domainSpace=Teuchos::null)
 
template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
RCP< const MultiVectorBase
< Scalar > > 
createConstMultiVector (const RCP< const Tpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > &tpetraMultiVector, const RCP< const VectorSpaceBase< Scalar > > rangeSpace=Teuchos::null, const RCP< const VectorSpaceBase< Scalar > > domainSpace=Teuchos::null)
 
template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
RCP< LinearOpBase< Scalar > > createLinearOp (const RCP< Tpetra::Operator< Scalar, LocalOrdinal, GlobalOrdinal, Node > > &tpetraOperator, const RCP< const VectorSpaceBase< Scalar > > rangeSpace=Teuchos::null, const RCP< const VectorSpaceBase< Scalar > > domainSpace=Teuchos::null)
 
template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
RCP< const LinearOpBase< Scalar > > createConstLinearOp (const RCP< const Tpetra::Operator< Scalar, LocalOrdinal, GlobalOrdinal, Node > > &tpetraOperator, const RCP< const VectorSpaceBase< Scalar > > rangeSpace=Teuchos::null, const RCP< const VectorSpaceBase< Scalar > > domainSpace=Teuchos::null)
 
template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
Teuchos::RCP< const
TpetraVectorSpace< Scalar,
LocalOrdinal, GlobalOrdinal,
Node > > 
getOrCreateTpetraVectorSpace (const RCP< const VectorSpaceBase< Scalar > > space, const RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > &tpetraMap)
template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
Teuchos::RCP< const
ScalarProdVectorSpaceBase
< Scalar > > 
getOrCreateLocallyReplicatedTpetraVectorSpace (const RCP< const VectorSpaceBase< Scalar > > space, const RCP< const Teuchos::Comm< int > > &tpetraComm, const RCP< Node > &tpetraNode, const int numCols)

Function Documentation

Thyra::TEUCHOS_UNIT_TEST ( EpetraOperatorWrapper  ,
basic   
)
Thyra::TEUCHOS_UNIT_TEST ( EpetraLinearOp  ,
ScaledLinearOpBase   
)
Thyra::TEUCHOS_UNIT_TEST ( EpetraLinearOp  ,
RowStatLinearOpBase   
)
Thyra::TEUCHOS_UNIT_TEST ( EpetraLinearOp  ,
rectangular   
)
Thyra::TEUCHOS_UNIT_TEST ( EpetraLinearOp  ,
blocked_op   
)
Thyra::TEUCHOS_UNIT_TEST ( EpetraLinearOpParallel  ,
blocked_op   
)

Definition at line 62 of file EpetraLinearOpParallel_UnitTests.cpp.

References Teuchos::VERB_MEDIUM.

Teuchos::RCP< const Teuchos::Comm< Thyra::Ordinal > > Thyra::convertTpetraToThyraComm ( const RCP< const Teuchos::Comm< int > > &  tpetraComm)

Given an Tpetra Teuchos::Comm<int> object, return an equivalent Teuchos::Comm<Ordinal> object.

Will throw if conversion is not successful.

Definition at line 55 of file Thyra_TpetraThyraWrappers.cpp.

References nonnull().

Referenced by Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::initialize().

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > Thyra::createVectorSpace ( const RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > &  tpetraMap)

Create a Thyra::VectorSpaceBase object given a Tpetra::Map.

Definition at line 107 of file Thyra_TpetraThyraWrappers_def.hpp.

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
Teuchos::RCP< Thyra::VectorBase< Scalar > > Thyra::createVector ( const RCP< Tpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > &  tpetraVector,
const RCP< const VectorSpaceBase< Scalar > >  space = Teuchos::null 
)
template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
Teuchos::RCP< const Thyra::VectorBase< Scalar > > Thyra::createConstVector ( const RCP< const Tpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > &  tpetraVector,
const RCP< const VectorSpaceBase< Scalar > >  space = Teuchos::null 
)
template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
Teuchos::RCP< Thyra::MultiVectorBase< Scalar > > Thyra::createMultiVector ( const RCP< Tpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > &  tpetraMultiVector,
const RCP< const VectorSpaceBase< Scalar > >  rangeSpace = Teuchos::null,
const RCP< const VectorSpaceBase< Scalar > >  domainSpace = Teuchos::null 
)
template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
Teuchos::RCP< const Thyra::MultiVectorBase< Scalar > > Thyra::createConstMultiVector ( const RCP< const Tpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > &  tpetraMultiVector,
const RCP< const VectorSpaceBase< Scalar > >  rangeSpace = Teuchos::null,
const RCP< const VectorSpaceBase< Scalar > >  domainSpace = Teuchos::null 
)
template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > Thyra::createLinearOp ( const RCP< Tpetra::Operator< Scalar, LocalOrdinal, GlobalOrdinal, Node > > &  tpetraOperator,
const RCP< const VectorSpaceBase< Scalar > >  rangeSpace = Teuchos::null,
const RCP< const VectorSpaceBase< Scalar > >  domainSpace = Teuchos::null 
)
template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
Teuchos::RCP< const Thyra::LinearOpBase< Scalar > > Thyra::createConstLinearOp ( const RCP< const Tpetra::Operator< Scalar, LocalOrdinal, GlobalOrdinal, Node > > &  tpetraOperator,
const RCP< const VectorSpaceBase< Scalar > >  rangeSpace = Teuchos::null,
const RCP< const VectorSpaceBase< Scalar > >  domainSpace = Teuchos::null 
)

Definition at line 201 of file Thyra_TpetraThyraWrappers_def.hpp.

References getOrCreateTpetraVectorSpace().

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
Teuchos::RCP<const TpetraVectorSpace<Scalar,LocalOrdinal,GlobalOrdinal,Node> > Thyra::getOrCreateTpetraVectorSpace ( const RCP< const VectorSpaceBase< Scalar > >  space,
const RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > &  tpetraMap 
)
template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
Teuchos::RCP<const ScalarProdVectorSpaceBase<Scalar> > Thyra::getOrCreateLocallyReplicatedTpetraVectorSpace ( const RCP< const VectorSpaceBase< Scalar > >  space,
const RCP< const Teuchos::Comm< int > > &  tpetraComm,
const RCP< Node > &  tpetraNode,
const int  numCols 
)

Definition at line 78 of file Thyra_TpetraThyraWrappers_def.hpp.

References nonnull().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines