dune-fem
2.4.1-rc
|
#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/storage/subarray.hh>
Public Types | |
typedef BaseVectorImp | BaseVectorType |
type of the base array More... | |
typedef IndexMapperImp | IndexMapperType |
type of the index mapper More... | |
typedef BaseVectorType::FieldType | FieldType |
type of array elements More... | |
typedef BaseType::VectorInterfaceType | VectorInterfaceType |
typedef BaseType::VectorType | VectorType |
typedef BaseType::ConstIteratorType | ConstIteratorType |
typedef BaseType::IteratorType | IteratorType |
typedef VectorDefaultTraits< BaseVectorImp::FieldType, SubVector< BaseVectorImp, IndexMapperImp > > | Traits |
typedef FieldType | value_type |
typedef Traits::ArrayType | ArrayType |
type of the implementation (Barton-Nackman) More... | |
typedef ThisType | ArrayInterfaceType |
type of this interface More... | |
typedef Traits::ElementType | ElementType |
type of the array elements More... | |
typedef ConstIteratorType | const_iterator |
type of constant iterator More... | |
typedef IteratorType | iterator |
type of (non-constant) iterator More... | |
typedef unsigned int | size_type |
type of unsigned integral type of indexing More... | |
Public Member Functions | |
SubVector (BaseVectorType &baseVector, const IndexMapperType &indexMapper) | |
const FieldType & | operator[] (unsigned int index) const |
FieldType & | operator[] (unsigned int index) |
unsigned int | size () const |
VectorType & | operator+= (const VectorInterface< T > &v) |
Add another vector to this one. More... | |
VectorType & | operator-= (const VectorInterface< T > &v) |
Subtract another vector from this one. More... | |
VectorType & | operator*= (const FieldType s) |
Multiply this vector by a scalar. More... | |
VectorType & | addScaled (const FieldType s, const VectorInterface< T > &v) |
Add a multiple of another vector to this one. More... | |
void | assign (const VectorInterface< T > &v) |
copy another vector to this one More... | |
void | assign (const FieldType s) |
Initialize all fields of this vector with a scalar. More... | |
void | assign (const ElementType &element) |
fill the array with copies of an element More... | |
void | assign (const ArrayInterface< T > &other) |
copy another array to this one More... | |
void | clear () |
initialize the vector to 0 More... | |
ConstIteratorType | begin () const |
obtain begin iterator More... | |
IteratorType | begin () |
obtain begin iterator More... | |
ConstIteratorType | end () const |
obtain end iterator More... | |
IteratorType | end () |
obtain end iterator More... | |
Protected Member Functions | |
const VectorInterfaceArrayTraits< VectorDefaultTraits< BaseVectorImp::FieldType, SubVector< BaseVectorImp, IndexMapperImp > > >::ArrayType & | asImp () const |
VectorInterfaceArrayTraits< VectorDefaultTraits< BaseVectorImp::FieldType, SubVector< BaseVectorImp, IndexMapperImp > > >::ArrayType & | asImp () |
Static Protected Member Functions | |
static const VectorInterfaceArrayTraits< VectorDefaultTraits< BaseVectorImp::FieldType, SubVector< BaseVectorImp, IndexMapperImp > > >::ArrayType & | asImp (const ThisType &other) |
static VectorInterfaceArrayTraits< VectorDefaultTraits< BaseVectorImp::FieldType, SubVector< BaseVectorImp, IndexMapperImp > > >::ArrayType & | asImp (ThisType &other) |
|
inherited |
type of this interface
|
inherited |
type of the implementation (Barton-Nackman)
typedef BaseVectorImp Dune::Fem::SubVector< BaseVectorImp, IndexMapperImp >::BaseVectorType |
type of the base array
|
inherited |
type of constant iterator
|
inherited |
|
inherited |
type of the array elements
typedef BaseVectorType :: FieldType Dune::Fem::SubVector< BaseVectorImp, IndexMapperImp >::FieldType |
type of array elements
typedef IndexMapperImp Dune::Fem::SubVector< BaseVectorImp, IndexMapperImp >::IndexMapperType |
type of the index mapper
|
inherited |
type of (non-constant) iterator
|
inherited |
|
inherited |
type of unsigned integral type of indexing
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inline |
|
inlineinherited |
Add a multiple of another vector to this one.
References Dune::Fem::VectorInterface< VT >::size().
|
inlinestaticprotectedinherited |
|
inlinestaticprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineinherited |
fill the array with copies of an element
[in] | element | element wich shall be copied into every array entry |
|
inlineinherited |
copy another array to this one
Copies the data from another array to this one. Both arrays must be of the same size.
[in] | other | array to copy |
|
inlineinherited |
copy another vector to this one
Copies the data from another vector to this one. Both vectors must be of the same size.
[in] | v | vector to copy |
References Dune::Fem::VectorInterface< VT >::size().
|
inlineinherited |
Initialize all fields of this vector with a scalar.
|
inlineinherited |
obtain begin iterator
|
inlineinherited |
obtain begin iterator
|
inlineinherited |
initialize the vector to 0
|
inlineinherited |
obtain end iterator
|
inlineinherited |
obtain end iterator
|
inlineinherited |
Multiply this vector by a scalar.
|
inlineinherited |
Add another vector to this one.
References Dune::Fem::VectorInterface< VT >::size().
|
inlineinherited |
Subtract another vector from this one.
References Dune::Fem::VectorInterface< VT >::size().
|
inline |
|
inline |
|
inline |