Public Member Functions
TSFExtended::VectorType< Scalar > Class Template Reference

Vector type objects are used by the application code to create vector spaces and operators of a given type. More...

Inheritance diagram for TSFExtended::VectorType< Scalar >:
Sundance::Handle< VectorTypeExtensions< Scalar > > Sundance::ObjectWithVerbosityBase

List of all members.

Public Member Functions

 VectorType ()
 Empty ctor.
 VectorType (Handleable< VectorTypeExtensions< Scalar > > *rawPtr)
 Construct a VectorType<Scalar> with a raw pointer to a VectorTypeExtensions<Scalar>
 VectorType (const RefCountPtr< VectorTypeExtensions< Scalar > > &smartPtr)
 Construct a VectorType<Scalar> with a smart pointer to a VectorTypeExtensions<Scalar>
VectorSpace< Scalar > createEvenlyPartitionedSpace (const MPIComm &comm, int nLocal) const
 create a vector space having nLocal elements on each processor
VectorSpace< Scalar > createSpace (int dimension, int nLocal, const int *locallyOwnedIndices, const MPIComm &comm) const
 create a distributed vector space.
RCP< GhostImporter< Scalar > > createGhostImporter (const VectorSpace< Scalar > &space, int nGhost, const int *ghostIndices) const
 Create an importer for ghost elements.
virtual RCP< MatrixFactory
< Scalar > > 
createMatrixFactory (const VectorSpace< Scalar > &domain, const VectorSpace< Scalar > &range) const
 Create a matrix factory of type compatible with this vector type, sized according to the given domain and range spaces.

Detailed Description

template<class Scalar>
class TSFExtended::VectorType< Scalar >

Vector type objects are used by the application code to create vector spaces and operators of a given type.

Definition at line 43 of file TSFVectorType.hpp.


Constructor & Destructor Documentation

template<class Scalar>
TSFExtended::VectorType< Scalar >::VectorType ( ) [inline]

Empty ctor.

Definition at line 46 of file TSFVectorType.hpp.

template<class Scalar>
TSFExtended::VectorType< Scalar >::VectorType ( Handleable< VectorTypeExtensions< Scalar > > *  rawPtr) [inline]

Construct a VectorType<Scalar> with a raw pointer to a VectorTypeExtensions<Scalar>

Definition at line 46 of file TSFVectorType.hpp.

template<class Scalar>
TSFExtended::VectorType< Scalar >::VectorType ( const RefCountPtr< VectorTypeExtensions< Scalar > > &  smartPtr) [inline]

Construct a VectorType<Scalar> with a smart pointer to a VectorTypeExtensions<Scalar>

Definition at line 46 of file TSFVectorType.hpp.


Member Function Documentation

template<class Scalar >
VectorSpace< Scalar > TSFExtended::VectorType< Scalar >::createEvenlyPartitionedSpace ( const MPIComm &  comm,
int  nLocal 
) const [inline]

create a vector space having nLocal elements on each processor

Definition at line 96 of file TSFVectorType.hpp.

template<class Scalar>
RCP< GhostImporter< Scalar > > TSFExtended::VectorType< Scalar >::createGhostImporter ( const VectorSpace< Scalar > &  space,
int  nGhost,
const int *  ghostIndices 
) const [inline]

Create an importer for ghost elements.

Definition at line 104 of file TSFVectorType.hpp.

Referenced by Sundance::DiscreteSpace::initImporter(), and TSFExtended::PoissonBoltzmannOp::PoissonBoltzmannOp().

template<class Scalar>
RCP< MatrixFactory< Scalar > > TSFExtended::VectorType< Scalar >::createMatrixFactory ( const VectorSpace< Scalar > &  domain,
const VectorSpace< Scalar > &  range 
) const [inline, virtual]

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

Definition at line 113 of file TSFVectorType.hpp.

Referenced by TSFExtended::HeatOperator1D::HeatOperator1D(), TSFExtended::MatrixLaplacian1D::init(), TSFExtended::PartitionedMatrixFactory::PartitionedMatrixFactory(), and TSFExtended::PoissonBoltzmannJacobian::setEvalPoint().

template<class Scalar >
VectorSpace< Scalar > TSFExtended::VectorType< Scalar >::createSpace ( int  dimension,
int  nLocal,
const int *  locallyOwnedIndices,
const MPIComm &  comm 
) const [inline]

create a distributed vector space.

Parameters:
dimensionthe dimension of the space
nLocalnumber of indices owned by the local processor
locallyOwnedIndicesarray of indices owned by this processor

Definition at line 87 of file TSFVectorType.hpp.

Referenced by TSFExtended::buildPartitionedSpace(), and Sundance::DiscreteSpace::initVectorSpace().

Site Contact