Playa::BlockVectorSpaceBase< Scalar > Class Template Reference

#include <PlayaBlockVectorSpaceDecl.hpp>

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 >
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 >
int Playa::BlockVectorSpaceBase< Scalar >::numLocalElements (  )  const [inline, virtual]

Count the locally owned elements

Implements Playa::VectorSpaceBase< Scalar >.

Definition at line 25 of file PlayaBlockVectorSpaceImpl.hpp.

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.

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 >.

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.


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

doxygen