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 MPIComm & | comm () const |
| virtual int | baseGlobalNaturalIndex () const |
| int | numBlocks () const |
Private Attributes | |
| Array< VectorSpace< Scalar > > | blocks_ |
| int | baseGNI_ |
This is the default implementation of a blocked vector space, which simply stores blocks in an array.
Definition at line 62 of file PlayaDefaultBlockVectorSpaceDecl.hpp.
| Playa::DefaultBlockVectorSpace< Scalar >::DefaultBlockVectorSpace | ( | const Array< VectorSpace< Scalar > > & | blocks | ) | [inline] |
ctor
Definition at line 55 of file PlayaDefaultBlockVectorSpaceImpl.hpp.
References Playa::VectorSpaceBase< Scalar >::accumulateBaseGNI(), and Playa::DefaultBlockVectorSpace< Scalar >::baseGNI_.
| int Playa::DefaultBlockVectorSpace< Scalar >::baseGlobalNaturalIndex | ( | ) | const [inline, virtual] |
Return the lowest index of the first block
Implements Playa::VectorSpaceBase< Scalar >.
Definition at line 91 of file PlayaDefaultBlockVectorSpaceImpl.hpp.
| const MPIComm & Playa::DefaultBlockVectorSpace< Scalar >::comm | ( | ) | const [inline, virtual] |
Return the communicator
Implements Playa::VectorSpaceBase< Scalar >.
Definition at line 85 of file PlayaDefaultBlockVectorSpaceImpl.hpp.
| 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 75 of file PlayaDefaultBlockVectorSpaceImpl.hpp.
| 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 63 of file PlayaDefaultBlockVectorSpaceImpl.hpp.
| int Playa::DefaultBlockVectorSpace< Scalar >::numBlocks | ( | ) | const [inline, virtual] |
Implements Playa::VectorSpaceBase< Scalar >.
Definition at line 82 of file PlayaDefaultBlockVectorSpaceDecl.hpp.
References Playa::DefaultBlockVectorSpace< Scalar >::blocks_.
int Playa::DefaultBlockVectorSpace< Scalar >::baseGNI_ [private] |
Definition at line 87 of file PlayaDefaultBlockVectorSpaceDecl.hpp.
Referenced by Playa::DefaultBlockVectorSpace< Scalar >::DefaultBlockVectorSpace().
Array<VectorSpace<Scalar> > Playa::DefaultBlockVectorSpace< Scalar >::blocks_ [private] |
Definition at line 86 of file PlayaDefaultBlockVectorSpaceDecl.hpp.
Referenced by Playa::DefaultBlockVectorSpace< Scalar >::numBlocks().