|
Thyra Package Browser (Single Doxygen Collection) Version of the Day
|
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 |
Related Symbols | |
(Note that these are not member symbols.) | |
| 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. | |
Public overridden from SpmdVectorSpaceDefaultBase | |
| 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_t > | weakSelfPtr_ |
| RCP< const Teuchos::Comm< Ordinal > > | getComm () const |
| Ordinal | localSubDim () const |
| TpetraVectorSpace () | |
Constructors and initializers | |
| static RCP< TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node > > | create () |
| Create with weak ownership to self. | |
| void | initialize (const RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > &tpetraMap) |
| Initialize a serial space. | |
Utility functions | |
| RCP< TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node > > | createLocallyReplicatedVectorSpace (int size) const |
| Create Tpetra locally replicated vector space. | |
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. | |
| RCP< const VectorSpaceBase< Scalar > > | clone () const |
| RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > | getTpetraMap () const |
| Get the embedded Tpetra::Map. | |
Protected overridden from VectorSpaceBase | |
| RCP< MultiVectorBase< Scalar > > | createCachedMembersView (const RTOpPack::SubMultiVectorView< Scalar > &raw_mv) 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 |
Concrete implementation of an SPMD vector space for Tpetra.
Definition at line 60 of file Thyra_TpetraVectorSpace_decl.hpp.
| typedef TpetraVectorSpace<Scalar,LocalOrdinal,GlobalOrdinal,Node> Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::this_t |
Definition at line 65 of file Thyra_TpetraVectorSpace_decl.hpp.
|
private |
Definition at line 309 of file Thyra_TpetraVectorSpace_def.hpp.
|
static |
Create with weak ownership to self.
Definition at line 59 of file Thyra_TpetraVectorSpace_def.hpp.
References Teuchos::RCP< class T >::create_weak().
Referenced by tpetraVectorSpace().
| void Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::initialize | ( | const RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > & | tpetraMap | ) |
Initialize a serial space.
Definition at line 68 of file Thyra_TpetraVectorSpace_def.hpp.
References comm_, Thyra::convertTpetraToThyraComm(), and tpetraMap_.
| 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 86 of file Thyra_TpetraVectorSpace_def.hpp.
References tpetraMap_.
| 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 259 of file Thyra_TpetraVectorSpace_def.hpp.
References tpetraMap_.
| RCP< const VectorSpaceBase< Scalar > > Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::clone | ( | ) | const |
Definition at line 275 of file Thyra_TpetraVectorSpace_def.hpp.
References tpetraMap_.
| RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::getTpetraMap | ( | ) | const |
Get the embedded Tpetra::Map.
Definition at line 282 of file Thyra_TpetraVectorSpace_def.hpp.
References tpetraMap_.
Referenced by Thyra::TpetraOperatorVectorExtraction< Scalar, LocalOrdinal, GlobalOrdinal, Node >::getTpetraMap().
|
protected |
Definition at line 99 of file Thyra_TpetraVectorSpace_def.hpp.
References Teuchos::rcp(), tpetraMap_, and weakSelfPtr_.
|
protected |
Definition at line 112 of file Thyra_TpetraVectorSpace_def.hpp.
References Teuchos::rcp(), tpetraMap_, and weakSelfPtr_.
Referenced by createCachedMembersView(), and createCachedMembersView().
| RCP< MultiVectorBase< Scalar > > Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::createCachedMembersView | ( | const RTOpPack::SubMultiVectorView< Scalar > & | raw_mv | ) | const |
Definition at line 157 of file Thyra_TpetraVectorSpace_def.hpp.
References RTOpPack::assign_entries(), createMembers(), RTOpPack::ConstSubMultiVectorView< class Scalar >::numSubCols(), Teuchos::PRE_DESTROY, Teuchos::rcp(), RTOpPack::ConstSubMultiVectorView< class Scalar >::subDim(), tpetraDomainSpace_, tpetraMap_, tpetraMV_, and weakSelfPtr_.
| RCP< const MultiVectorBase< Scalar > > Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::createCachedMembersView | ( | const RTOpPack::ConstSubMultiVectorView< Scalar > & | raw_mv | ) | const |
Definition at line 214 of file Thyra_TpetraVectorSpace_def.hpp.
References RTOpPack::assign_entries(), createMembers(), RTOpPack::ConstSubMultiVectorView< class Scalar >::numSubCols(), Teuchos::rcp(), RTOpPack::ConstSubMultiVectorView< class Scalar >::subDim(), tpetraDomainSpace_, tpetraMap_, tpetraMV_, and weakSelfPtr_.
| RCP< const Teuchos::Comm< Ordinal > > Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::getComm | ( | ) | const |
Definition at line 292 of file Thyra_TpetraVectorSpace_def.hpp.
References comm_.
| Ordinal Thyra::TpetraVectorSpace< Scalar, LocalOrdinal, GlobalOrdinal, Node >::localSubDim | ( | ) | const |
Definition at line 299 of file Thyra_TpetraVectorSpace_def.hpp.
References tpetraMap_.
|
Nonmember constructor that creats a serial vector space.
Definition at line 174 of file Thyra_TpetraVectorSpace_decl.hpp.
References create().
|
private |
Definition at line 148 of file Thyra_TpetraVectorSpace_decl.hpp.
Referenced by clone(), createCachedMembersView(), createCachedMembersView(), createLocallyReplicatedVectorSpace(), createMember(), createMembers(), getTpetraMap(), hasInCoreView(), initialize(), and localSubDim().
|
mutableprivate |
Definition at line 149 of file Thyra_TpetraVectorSpace_decl.hpp.
Referenced by createCachedMembersView(), and createCachedMembersView().
|
mutableprivate |
Definition at line 150 of file Thyra_TpetraVectorSpace_decl.hpp.
Referenced by createCachedMembersView(), and createCachedMembersView().
|
private |
Definition at line 157 of file Thyra_TpetraVectorSpace_decl.hpp.
Referenced by getComm(), and initialize().
|
private |
Definition at line 158 of file Thyra_TpetraVectorSpace_decl.hpp.
Referenced by createCachedMembersView(), createCachedMembersView(), createMember(), and createMembers().