dune-fem
2.4.1-rc
|
#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/function/blockvectors/defaultblockvectors.hh>
Public Types | |
typedef BaseType::SizeType | SizeType |
enum | |
Size of each block. More... | |
typedef ArrayType | DofContainerType |
typedef ArrayType::value_type | FieldType |
Type of the field the dofs lie in. More... | |
typedef ArrayType::iterator | IteratorType |
Iterator to iterate over the dofs. More... | |
typedef ArrayType::const_iterator | ConstIteratorType |
Constant iterator to iterate over the dofs. More... | |
typedef FieldType | value_type |
Typedef to make this class STL-compatible. More... | |
typedef SizeType | size_type |
Typedef to make this class STL-compatible. More... | |
typedef SimpleBlockVectorBlock< ThisType > | DofBlockType |
Type of one (mutable) block. More... | |
typedef SimpleBlockVectorBlock< ThisType > | ConstDofBlockType |
Type of one constant block. More... | |
typedef Fem::Envelope< DofBlockType > | DofBlockPtrType |
typedef Fem::Envelope< ConstDofBlockType > | ConstDofBlockPtrType |
Public Member Functions | |
MutableBlockVector (SizeType size) | |
Constructor; use this to create a block vector with 'size' blocks. More... | |
MutableBlockVector (const ThisType &other) | |
Copy constructor. More... | |
~MutableBlockVector () | |
void | reserve (const int size) |
Reserve memory. More... | |
void | resize (SizeType size) |
Resize the block vector. More... | |
ConstDofBlockType | operator[] (const unsigned int i) const |
Accessor for a constant block. More... | |
DofBlockType | operator[] (const unsigned int i) |
Accessor for a block. More... | |
ConstDofBlockPtrType | blockPtr (const unsigned int i) const |
Accessor for a constant block. More... | |
DofBlockPtrType | blockPtr (const unsigned int i) |
Accessor for a block. More... | |
IteratorType | begin () |
Iterator pointing to the first dof. More... | |
ConstIteratorType | begin () const |
Const-iterator pointing to the first dof. More... | |
IteratorType | end () |
Iterator pointing to the last dof. More... | |
ConstIteratorType | end () const |
Const-iterator pointing to the last dof. More... | |
SizeType | size () const |
Returns the number of blocks. More... | |
SizeType | numDofs () const |
Returns the number of dofs in the block vector. More... | |
FieldType * | data () |
const FieldType * | data () const |
const ArrayType & | array () const |
ArrayType & | array () |
const ThisType & | operator+= (const ThisType &other) |
Add another block vector to *this. More... | |
const ThisType & | operator-= (const ThisType &other) |
Subtract another block vector from *this. More... | |
FieldType | operator* (const ThisType &other) const |
Scalar product *this with another block vector. More... | |
const ThisType & | operator*= (const FieldType &scalar) |
Scale this block vector. More... | |
void | axpy (const FieldType &scalar, const ThisType &other) |
Add a scalar multiple of another block vector to this block vector. More... | |
void | clear () |
Clear this block vector, i.e. set each dof to 0. More... | |
Protected Member Functions | |
StaticContainer & | allocateContainer (const SizeType size) |
void | assign (const ThisType &other) |
ThisType & | asImp () |
const ThisType & | asImp () const |
Protected Attributes | |
MutableContainer * | container_ |
ArrayType & | array_ |
CounterType | sequence_ |
|
inherited |
|
inherited |
Type of one constant block.
|
inherited |
Constant iterator to iterate over the dofs.
|
inherited |
|
inherited |
Type of one (mutable) block.
|
inherited |
|
inherited |
Type of the field the dofs lie in.
|
inherited |
Iterator to iterate over the dofs.
|
inherited |
Typedef to make this class STL-compatible.
typedef BaseType :: SizeType Dune::Fem::MutableBlockVector< MutableArray< F >, BlockSize >::SizeType |
|
inherited |
Typedef to make this class STL-compatible.
|
inherited |
Size of each block.
|
inlineexplicit |
Constructor; use this to create a block vector with 'size' blocks.
The dofs are not initialized.
[in] | size | Number of blocks |
|
inline |
Copy constructor.
|
inline |
|
inlineprotected |
|
inlineinherited |
|
inlineinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineinherited |
Add a scalar multiple of another block vector to this block vector.
Semantic in pseudocode: " *this = *this + scalar*v "
[in] | scalar | Scalar factor by which v is multiplied before it is added to *this |
[in] | other | The other block vector |
|
inlineinherited |
Iterator pointing to the first dof.
|
inlineinherited |
Const-iterator pointing to the first dof.
|
inlineinherited |
Accessor for a constant block.
[in] | i | Index of the block |
|
inlineinherited |
Accessor for a block.
[in] | i | Index of the block |
|
inlineinherited |
Clear this block vector, i.e. set each dof to 0.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Iterator pointing to the last dof.
|
inlineinherited |
Const-iterator pointing to the last dof.
|
inlineinherited |
Returns the number of dofs in the block vector.
|
inlineinherited |
Scalar product *this with another block vector.
[in] | other | Other block vector |
|
inlineinherited |
Scale this block vector.
[in] | scalar | Factor for the scaling |
|
inlineinherited |
Add another block vector to *this.
[in] | other | Other block vector to add |
|
inlineinherited |
Subtract another block vector from *this.
[in] | other | Other block vector to subtract |
|
inlineinherited |
Accessor for a constant block.
[in] | i | Index of the block |
|
inlineinherited |
Accessor for a block.
[in] | i | Index of the block |
|
inline |
Reserve memory.
This method is a no-op. It is defined here to make the block vector compatible to the managed dof storage mechanisms used by Dune::Fem::BlockVectorDiscreteFunction
[in] | size | Number of blocks |
References Dune::Fem::MutableArray< T, AllocatorType >::reserve().
|
inline |
Resize the block vector.
[in] | size | New number of blocks |
References Dune::Fem::MutableArray< T, AllocatorType >::resize().
|
inlineinherited |
Returns the number of blocks.
|
protectedinherited |
|
protected |
|
mutableprotectedinherited |