dune-fem
2.4.1-rc
|
#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/function/blockvectors/defaultblockvectors.hh>
Classes | |
class | Iterator |
Public Types | |
enum | { blockSize = DofBlock :: dimension } |
typedef ArrayType | DofContainerType |
typedef DofBlock::value_type | FieldType |
typedef Iterator< typename ArrayType::Iterator, FieldType > | IteratorType |
typedef Iterator< typename ArrayType::ConstIterator, const FieldType > | ConstIteratorType |
typedef DofBlock | DofBlockType |
typedef const DofBlock | ConstDofBlockType |
typedef DofBlockType * | DofBlockPtrType |
typedef ConstDofBlockType * | ConstDofBlockPtrType |
typedef ArrayType::size_type | SizeType |
typedef ArrayType::value_type | value_type |
Typedef to make this class STL-compatible. More... | |
Public Member Functions | |
ISTLBlockVector (ArrayType &array) | |
Constructor; use this to create a block vector with 'size' blocks. More... | |
ISTLBlockVector () | |
const ThisType & | operator= (const ThisType &other) |
Copy assignment operator. More... | |
DofBlockPtrType | blockPtr (const unsigned int i) |
ConstDofBlockPtrType | blockPtr (const unsigned int i) const |
DofBlockType & | operator[] (const unsigned int i) |
ConstDofBlockType & | operator[] (const unsigned int i) const |
IteratorType | begin () |
ConstIteratorType | begin () const |
IteratorType | end () |
ConstIteratorType | end () const |
SizeType | size () const |
void | reserve (const int size) |
Reserve memory. More... | |
void | resize (SizeType size) |
Resize the block vector. More... | |
ArrayType & | array () |
const ArrayType & | array () const |
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 Types | |
typedef DebugCounter< size_t > | CounterType |
Protected Member Functions | |
void | assign (const ThisType &other) |
ThisType & | asImp () |
const ThisType & | asImp () const |
Protected Attributes | |
ArrayType * | array_ |
CounterType | sequence_ |
typedef ConstDofBlockType* Dune::Fem::ISTLBlockVector< DofBlock >::ConstDofBlockPtrType |
typedef const DofBlock Dune::Fem::ISTLBlockVector< DofBlock >::ConstDofBlockType |
typedef Iterator< typename ArrayType::ConstIterator, const FieldType > Dune::Fem::ISTLBlockVector< DofBlock >::ConstIteratorType |
|
protectedinherited |
typedef DofBlockType* Dune::Fem::ISTLBlockVector< DofBlock >::DofBlockPtrType |
typedef DofBlock Dune::Fem::ISTLBlockVector< DofBlock >::DofBlockType |
typedef ArrayType Dune::Fem::ISTLBlockVector< DofBlock >::DofContainerType |
typedef DofBlock :: value_type Dune::Fem::ISTLBlockVector< DofBlock >::FieldType |
typedef Iterator< typename ArrayType::Iterator, FieldType > Dune::Fem::ISTLBlockVector< DofBlock >::IteratorType |
typedef ArrayType::size_type Dune::Fem::ISTLBlockVector< DofBlock >::SizeType |
typedef ArrayType::value_type Dune::Fem::ISTLBlockVector< DofBlock >::value_type |
Typedef to make this class STL-compatible.
|
inlineexplicit |
Constructor; use this to create a block vector with 'size' blocks.
The dofs are not initialized.
[in] | size | Number of blocks |
|
inline |
|
inline |
Referenced by Dune::Fem::ISTLBlockVector< DofBlock >::operator=().
|
inline |
|
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 |
|
inline |
References Dune::Fem::ISTLBlockVector< DofBlock >::begin().
Referenced by Dune::Fem::ISTLBlockVector< DofBlock >::begin().
|
inline |
|
inline |
|
inline |
|
inlineinherited |
Clear this block vector, i.e. set each dof to 0.
|
inline |
References Dune::Fem::ISTLBlockVector< DofBlock >::end().
Referenced by Dune::Fem::ISTLBlockVector< DofBlock >::end().
|
inline |
References Dune::Fem::ISTLBlockVector< DofBlock >::end().
Referenced by Dune::Fem::ISTLBlockVector< DofBlock >::end().
|
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 |
|
inline |
Copy assignment operator.
References Dune::Fem::ISTLBlockVector< DofBlock >::array().
|
inline |
|
inline |
|
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 |
|
inline |
Resize the block vector.
[in] | size | New number of blocks |
|
inline |
|
protected |
|
mutableprotectedinherited |