Playa::BlockVectorSpaceBase< Scalar > Class Template Reference

Inheritance diagram for Playa::BlockVectorSpaceBase< Scalar >:

Playa::VectorSpaceBase< 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 21 of file PlayaBlockVectorSpaceDecl.hpp.


Constructor & Destructor Documentation

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

virtual dtor

Definition at line 25 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 55 of file PlayaBlockVectorSpaceImpl.hpp.

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

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 14 of file PlayaBlockVectorSpaceImpl.hpp.

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

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 36 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]

Site Contact