Public Member Functions | |
DefaultBlockVector (const VectorSpace< Scalar > &space) | |
DefaultBlockVector (const VectorSpace< Scalar > &space, const Array< Vector< Scalar > > &blocks) | |
virtual | ~DefaultBlockVector () |
virtual void | setBlock (int b, const Vector< Scalar > &block) |
virtual const Vector< Scalar > & | getBlock (int b) const |
virtual Vector< Scalar > | getNonConstBlock (int b) |
virtual int | numBlocks () const |
VectorBase interface | |
RCP< const VectorSpaceBase < double > > | space () const |
Private Attributes | |
VectorSpace< Scalar > | space_ |
Teuchos::Array< Vector< Scalar > > | blocks_ |
Definition at line 21 of file PlayaDefaultBlockVectorDecl.hpp.
Playa::DefaultBlockVector< Scalar >::DefaultBlockVector | ( | const VectorSpace< Scalar > & | space | ) | [inline] |
Definition at line 28 of file PlayaDefaultBlockVectorImpl.hpp.
References Playa::VectorSpace< Scalar >::getBlock(), and Playa::VectorSpace< Scalar >::numBlocks().
Playa::DefaultBlockVector< Scalar >::DefaultBlockVector | ( | const VectorSpace< Scalar > & | space, | |
const Array< Vector< Scalar > > & | blocks | |||
) | [inline] |
Definition at line 39 of file PlayaDefaultBlockVectorImpl.hpp.
virtual Playa::DefaultBlockVector< Scalar >::~DefaultBlockVector | ( | ) | [inline, virtual] |
Definition at line 32 of file PlayaDefaultBlockVectorDecl.hpp.
const Vector< Scalar > & Playa::DefaultBlockVector< Scalar >::getBlock | ( | int | b | ) | const [inline, virtual] |
Implements Playa::BlockVectorBase< Scalar >.
Definition at line 62 of file PlayaDefaultBlockVectorImpl.hpp.
References Playa::DefaultBlockVector< Scalar >::blocks_, PLAYA_BOUNDSCHECK, and Playa::DefaultBlockVector< Scalar >::space_.
Vector< Scalar > Playa::DefaultBlockVector< Scalar >::getNonConstBlock | ( | int | b | ) | [inline, virtual] |
Implements Playa::BlockVectorBase< Scalar >.
Definition at line 71 of file PlayaDefaultBlockVectorImpl.hpp.
References Playa::DefaultBlockVector< Scalar >::blocks_, PLAYA_BOUNDSCHECK, and Playa::DefaultBlockVector< Scalar >::space_.
virtual int Playa::DefaultBlockVector< Scalar >::numBlocks | ( | ) | const [inline, virtual] |
Reimplemented from Playa::VectorBase< Scalar >.
Definition at line 50 of file PlayaDefaultBlockVectorDecl.hpp.
References Playa::DefaultBlockVector< Scalar >::blocks_.
void Playa::DefaultBlockVector< Scalar >::setBlock | ( | int | b, | |
const Vector< Scalar > & | block | |||
) | [inline, virtual] |
Implements Playa::BlockVectorBase< Scalar >.
Definition at line 45 of file PlayaDefaultBlockVectorImpl.hpp.
References Playa::DefaultBlockVector< Scalar >::blocks_, PLAYA_BOUNDSCHECK, Playa::Vector< Scalar >::space(), and Playa::DefaultBlockVector< Scalar >::space_.
RCP<const VectorSpaceBase<double> > Playa::DefaultBlockVector< Scalar >::space | ( | ) | const [inline, virtual] |
Access to the space in which this vector lives
Implements Playa::VectorBase< Scalar >.
Definition at line 37 of file PlayaDefaultBlockVectorDecl.hpp.
References Playa::DefaultBlockVector< Scalar >::space_.
Teuchos::Array<Vector<Scalar> > Playa::DefaultBlockVector< Scalar >::blocks_ [private] |
VectorSpace<Scalar> Playa::DefaultBlockVector< Scalar >::space_ [private] |