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 |
Definition at line 21 of file PlayaBlockVectorSpaceDecl.hpp.
virtual Playa::BlockVectorSpaceBase< Scalar >::~BlockVectorSpaceBase | ( | ) | [inline, virtual] |
virtual dtor
Definition at line 25 of file PlayaBlockVectorSpaceDecl.hpp.
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().
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.
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::BlockVectorSpaceBase< Scalar >::description(), Playa::VectorSpace< Scalar >::getBlock(), Playa::BlockVectorSpaceBase< Scalar >::isCompatible(), and Playa::BlockVectorSpaceBase< Scalar >::numLocalElements().
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().
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.
References Playa::BlockVectorSpaceBase< Scalar >::getBlock(), and Playa::VectorSpaceBase< Scalar >::numBlocks().