Playa::DefaultBlockVectorSpace< Scalar > Class Template Reference

Inheritance diagram for Playa::DefaultBlockVectorSpace< Scalar >:

Playa::BlockVectorSpaceBase< Scalar > Playa::VectorSpaceBase< Scalar >

List of all members.

Public Member Functions

 DefaultBlockVectorSpace (const Array< VectorSpace< Scalar > > &blocks)
virtual const VectorSpace
< Scalar > & 
getBlock (int b) const
virtual RCP< VectorBase< Scalar > > createMember (const VectorSpace< Scalar > &self) const
virtual const MPICommcomm () const
virtual int baseGlobalNaturalIndex () const
int numBlocks () const

Private Attributes

Array< VectorSpace< Scalar > > blocks_
int baseGNI_


Detailed Description

template<class Scalar>
class Playa::DefaultBlockVectorSpace< Scalar >

This is the default implementation of a blocked vector space, which simply stores blocks in an array.

Author:
Kevin Long (kevin.long@ttu.edu)

Definition at line 25 of file PlayaDefaultBlockVectorSpaceDecl.hpp.


Constructor & Destructor Documentation

template<class Scalar >
Playa::DefaultBlockVectorSpace< Scalar >::DefaultBlockVectorSpace ( const Array< VectorSpace< Scalar > > &  blocks  )  [inline]


Member Function Documentation

template<class Scalar >
int Playa::DefaultBlockVectorSpace< Scalar >::baseGlobalNaturalIndex (  )  const [inline, virtual]

Return the lowest index of the first block

Implements Playa::VectorSpaceBase< Scalar >.

Definition at line 54 of file PlayaDefaultBlockVectorSpaceImpl.hpp.

References Playa::DefaultBlockVectorSpace< Scalar >::baseGNI_.

template<class Scalar >
const MPIComm & Playa::DefaultBlockVectorSpace< Scalar >::comm (  )  const [inline, virtual]

template<class Scalar >
RCP< VectorBase< Scalar > > Playa::DefaultBlockVectorSpace< Scalar >::createMember ( const VectorSpace< Scalar > &  self  )  const [inline, virtual]

Create a block vector

Implements Playa::VectorSpaceBase< Scalar >.

Definition at line 38 of file PlayaDefaultBlockVectorSpaceImpl.hpp.

template<class Scalar >
const VectorSpace< Scalar > & Playa::DefaultBlockVectorSpace< Scalar >::getBlock ( int  b  )  const [inline, virtual]

Get a block specified by an integer index. This function should hrow an exception if the index is out of range

Implements Playa::BlockVectorSpaceBase< Scalar >.

Definition at line 26 of file PlayaDefaultBlockVectorSpaceImpl.hpp.

References Playa::DefaultBlockVectorSpace< Scalar >::blocks_, Playa::BlockVectorSpaceBase< Scalar >::description(), and Playa::DefaultBlockVectorSpace< Scalar >::numBlocks().

Referenced by Playa::DefaultBlockVectorSpace< Scalar >::comm().

template<class Scalar >
int Playa::DefaultBlockVectorSpace< Scalar >::numBlocks (  )  const [inline, virtual]


Member Data Documentation

template<class Scalar >
int Playa::DefaultBlockVectorSpace< Scalar >::baseGNI_ [private]

template<class Scalar >
Array<VectorSpace<Scalar> > Playa::DefaultBlockVectorSpace< Scalar >::blocks_ [private]

Site Contact