Playa::EpetraVectorType Class Reference

#include <PlayaEpetraVectorType.hpp>

Inheritance diagram for Playa::EpetraVectorType:

Playa::Handleable< VectorTypeBase< double > > Playa::Printable

List of all members.

Public Member Functions

 EpetraVectorType ()
virtual ~EpetraVectorType ()
RCP< const VectorSpaceBase
< double > > 
createSpace (int dimension, int nLocal, const int *locallyOwnedIndices, const MPIComm &comm) const
RCP< GhostImporter< double > > createGhostImporter (const VectorSpace< double > &space, int nGhost, const int *ghostIndices) const
RCP< MatrixFactory< double > > createMatrixFactory (const VectorSpace< double > &domain, const VectorSpace< double > &range) const
virtual Teuchos::RCP
< VectorTypeBase< double > > 
getRcp ()
Printable interface


void print (std::ostream &os) const


Detailed Description

\!brief Epetra vector type is a factory for epetra vector spaces

Definition at line 22 of file PlayaEpetraVectorType.hpp.


Constructor & Destructor Documentation

EpetraVectorType::EpetraVectorType (  ) 

Construct a vector type

Definition at line 27 of file PlayaEpetraVectorType.cpp.

virtual Playa::EpetraVectorType::~EpetraVectorType (  )  [inline, virtual]

virtual dtor

Definition at line 32 of file PlayaEpetraVectorType.hpp.


Member Function Documentation

RCP< const VectorSpaceBase< double > > EpetraVectorType::createSpace ( int  dimension,
int  nLocal,
const int *  locallyOwnedIndices,
const MPIComm comm 
) const

create a distributed vector space.

Parameters:
dimension the dimension of the space
nLocal number of indices owned by the local processor
locallyOwnedIndices array of indices owned by this processor

Definition at line 32 of file PlayaEpetraVectorType.cpp.

RCP< GhostImporter< double > > EpetraVectorType::createGhostImporter ( const VectorSpace< double > &  space,
int  nGhost,
const int *  ghostIndices 
) const

Create an importer for accessing ghost elements.

Parameters:
space the distributed vector space on which ghost elements are to be shared
nGhost number of ghost elements needed by this processor
ghostIndices read-only C array of off-processor indices needed by this processor.
Returns:
A RCP to a GhostImporter object.

Definition at line 53 of file PlayaEpetraVectorType.cpp.

RCP< MatrixFactory< double > > EpetraVectorType::createMatrixFactory ( const VectorSpace< double > &  domain,
const VectorSpace< double > &  range 
) const

Create a matrix factory of type compatible with this vector type, sized according to the given domain and range spaces.

Definition at line 69 of file PlayaEpetraVectorType.cpp.

void Playa::EpetraVectorType::print ( std::ostream &  os  )  const [inline, virtual]

Print to stream

Implements Playa::Printable.

Definition at line 73 of file PlayaEpetraVectorType.hpp.

virtual Teuchos::RCP< VectorTypeBase<double> > Playa::EpetraVectorType::getRcp (  )  [inline, virtual]

Handleable<VectorTypeBase<double> > interface

Implements Playa::Handleable< VectorTypeBase< double > >.

Definition at line 76 of file PlayaEpetraVectorType.hpp.


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

doxygen