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

Concrete implementation of an SPMD vector space for Tpetra. More...

#include <Thyra_TpetraVectorSpace_decl.hpp>

Inherits SpmdVectorSpaceDefaultBase< Scalar >.

Public Types

typedef TpetraVectorSpace
< Scalar, LocalOrdinal,
GlobalOrdinal, Node > 
this_t
 

Private Member Functions

 TpetraVectorSpace ()
 

Private Attributes

RCP< const Tpetra::Map
< LocalOrdinal, GlobalOrdinal,
Node > > 
tpetraMap_
 
RCP< TpetraVectorSpace< Scalar,
LocalOrdinal, GlobalOrdinal,
Node > > 
tpetraDomainSpace_
 
RCP< Tpetra::MultiVector
< Scalar, LocalOrdinal,
GlobalOrdinal, Node > > 
tpetraMV_
 
RCP< const Teuchos::Comm
< Ordinal > > 
comm_
 
RCP< this_tweakSelfPtr_
 

Related Functions

(Note that these are not member functions.)

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
RCP< TpetraVectorSpace< Scalar,
LocalOrdinal, GlobalOrdinal,
Node > > 
tpetraVectorSpace (const RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > &tpetraMap)
 Nonmember constructor that creats a serial vector space. More...
 

Constructors and initializers

static RCP< TpetraVectorSpace
< Scalar, LocalOrdinal,
GlobalOrdinal, Node > > 
create ()
 Create with weak ownership to self. More...
 
void initialize (const RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > &tpetraMap)
 Initialize a serial space. More...
 

Utility functions

RCP< TpetraVectorSpace< Scalar,
LocalOrdinal, GlobalOrdinal,
Node > > 
createLocallyReplicatedVectorSpace (int size) const
 Create Tpetra locally replicated vector space. More...
 

Public overridden from VectorSpaceBase

bool hasInCoreView (const Range1D &rng, const EViewType viewType, const EStrideType strideType) const
 Returns true if all the elements in rng are in this process. More...
 
RCP< const VectorSpaceBase
< Scalar > > 
clone () const
 
RCP< const Tpetra::Map
< LocalOrdinal, GlobalOrdinal,
Node > > 
getTpetraMap () const
 Get the embedded Tpetra::Map. More...
 

Protected overridden from VectorSpaceBase

RCP< MultiVectorBase< Scalar > > createCachedMembersView (const RTOpPack::SubMultiVectorView< Scalar > &raw_mv, bool initialize=true) const
 
RCP< const MultiVectorBase
< Scalar > > 
createCachedMembersView (const RTOpPack::ConstSubMultiVectorView< Scalar > &raw_mv) const
 
RCP< VectorBase< Scalar > > createMember () const
 
RCP< MultiVectorBase< Scalar > > createMembers (int numMembers) const
 

Public overridden from SpmdVectorSpaceDefaultBase

RCP< const Teuchos::Comm
< Ordinal > > 
getComm () const
 
Ordinal localSubDim () const
 

Detailed Description

template<class Scalar, class LocalOrdinal, class GlobalOrdinal, class Node>
class Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >

Concrete implementation of an SPMD vector space for Tpetra.

Definition at line 27 of file Thyra_TpetraVectorSpace_decl.hpp.

Member Typedef Documentation

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
typedef TpetraVectorSpace<Scalar,LocalOrdinal,GlobalOrdinal,Node> Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::this_t

Definition at line 32 of file Thyra_TpetraVectorSpace_decl.hpp.

Constructor & Destructor Documentation

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::TpetraVectorSpace ( )
private

Definition at line 279 of file Thyra_TpetraVectorSpace_def.hpp.

Member Function Documentation

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
RCP< TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::create ( )
static
template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
void Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::initialize ( const RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > &  tpetraMap)

Initialize a serial space.

Definition at line 35 of file Thyra_TpetraVectorSpace_def.hpp.

References Thyra::convertTpetraToThyraComm().

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
RCP< TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::createLocallyReplicatedVectorSpace ( int  size) const

Create Tpetra locally replicated vector space.

This vector space forms the domain space of a Thyra::TpetraMultiVector.

Definition at line 53 of file Thyra_TpetraVectorSpace_def.hpp.

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
bool Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::hasInCoreView ( const Range1D &  rng,
const EViewType  viewType,
const EStrideType  strideType 
) const

Returns true if all the elements in rng are in this process.

Definition at line 229 of file Thyra_TpetraVectorSpace_def.hpp.

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
RCP< const VectorSpaceBase< Scalar > > Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::clone ( ) const

Definition at line 245 of file Thyra_TpetraVectorSpace_def.hpp.

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::getTpetraMap ( ) const

Get the embedded Tpetra::Map.

Definition at line 252 of file Thyra_TpetraVectorSpace_def.hpp.

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
RCP< VectorBase< Scalar > > Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::createMember ( ) const
protected

Definition at line 66 of file Thyra_TpetraVectorSpace_def.hpp.

References Teuchos::rcp().

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
RCP< MultiVectorBase< Scalar > > Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::createMembers ( int  numMembers) const
protected

Definition at line 79 of file Thyra_TpetraVectorSpace_def.hpp.

References Teuchos::rcp().

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
RCP< MultiVectorBase< Scalar > > Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::createCachedMembersView ( const RTOpPack::SubMultiVectorView< Scalar > &  raw_mv,
bool  initialize = true 
) const
template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
RCP< const MultiVectorBase< Scalar > > Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::createCachedMembersView ( const RTOpPack::ConstSubMultiVectorView< Scalar > &  raw_mv) const
template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
RCP< const Teuchos::Comm< Ordinal > > Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::getComm ( ) const

Definition at line 262 of file Thyra_TpetraVectorSpace_def.hpp.

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
Ordinal Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::localSubDim ( ) const

Definition at line 269 of file Thyra_TpetraVectorSpace_def.hpp.

Friends And Related Function Documentation

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
RCP< TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node > > tpetraVectorSpace ( const RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > &  tpetraMap)
related

Nonmember constructor that creats a serial vector space.

Definition at line 141 of file Thyra_TpetraVectorSpace_decl.hpp.

References Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::create().

Member Data Documentation

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
RCP<const Tpetra::Map<LocalOrdinal,GlobalOrdinal,Node> > Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::tpetraMap_
private

Definition at line 115 of file Thyra_TpetraVectorSpace_decl.hpp.

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
RCP<TpetraVectorSpace<Scalar,LocalOrdinal,GlobalOrdinal,Node> > Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::tpetraDomainSpace_
mutableprivate

Definition at line 116 of file Thyra_TpetraVectorSpace_decl.hpp.

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
RCP<Tpetra::MultiVector<Scalar,LocalOrdinal,GlobalOrdinal,Node> > Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::tpetraMV_
mutableprivate

Definition at line 117 of file Thyra_TpetraVectorSpace_decl.hpp.

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
RCP<const Teuchos::Comm<Ordinal> > Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::comm_
private

Definition at line 124 of file Thyra_TpetraVectorSpace_decl.hpp.

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
RCP<this_t> Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::weakSelfPtr_
private

Definition at line 125 of file Thyra_TpetraVectorSpace_decl.hpp.


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