Public Member Functions
Playa::BlockVectorSpaceBase< Scalar > Class Template Reference
Inheritance diagram for Playa::BlockVectorSpaceBase< Scalar >:
Playa::VectorSpaceBase< Scalar > Playa::DefaultBlockVectorSpace< Scalar >

List of all members.

Public Member Functions

virtual ~BlockVectorSpaceBase ()
virtual int dim () const
virtual int numLocalElements () const
virtual bool isCompatible (const VectorSpaceBase< Scalar > *other) const
virtual const VectorSpace
< Scalar > & 
getBlock (int b) const =0
virtual std::string description () const

Detailed Description

template<class Scalar>
class Playa::BlockVectorSpaceBase< Scalar >

This is a base class for a blocked vector space. It assumes nothing about the physical storage of the blocks.

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

Definition at line 58 of file PlayaBlockVectorSpaceDecl.hpp.


Constructor & Destructor Documentation

template<class Scalar>
virtual Playa::BlockVectorSpaceBase< Scalar >::~BlockVectorSpaceBase ( ) [inline, virtual]

virtual dtor

Definition at line 62 of file PlayaBlockVectorSpaceDecl.hpp.


Member Function Documentation

template<class Scalar >
std::string Playa::BlockVectorSpaceBase< Scalar >::description ( ) const [inline, virtual]

Write a description by recursivle describing the blocks

Definition at line 92 of file PlayaBlockVectorSpaceImpl.hpp.

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

Compute dimension. The default implementation sums the dimensions of all blocks.

Implements Playa::VectorSpaceBase< Scalar >.

Definition at line 51 of file PlayaBlockVectorSpaceImpl.hpp.

template<class Scalar>
virtual const VectorSpace<Scalar>& Playa::BlockVectorSpaceBase< Scalar >::getBlock ( int  b) const [pure virtual]

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

Implemented in Playa::DefaultBlockVectorSpace< Scalar >.

Referenced by Playa::VectorSpace< Scalar >::getBlock(), and Playa::BlockVectorSpaceBase< Scalar >::isCompatible().

template<class Scalar >
bool Playa::BlockVectorSpaceBase< Scalar >::isCompatible ( const VectorSpaceBase< Scalar > *  other) const [inline, virtual]

Check compatibility with another space. The default implementation loops over blocks checking compatiblilty at each index.

Implements Playa::VectorSpaceBase< Scalar >.

Definition at line 73 of file PlayaBlockVectorSpaceImpl.hpp.

References Playa::BlockVectorSpaceBase< Scalar >::getBlock(), and Playa::VectorSpaceBase< Scalar >::numBlocks().

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

Count the locally owned elements

Implements Playa::VectorSpaceBase< Scalar >.

Definition at line 62 of file PlayaBlockVectorSpaceImpl.hpp.

Site Contact