|
dune-fem 2.12-git
|
Loading...
Searching...
No Matches
subvector.hh
Go to the documentation of this file.
28 typedef std::decay_t< decltype( std::declval< K >()[ std::declval< size_type >() ] ) > value_type;
34 typedef typename FieldTraits< typename DenseMatVecTraits< Fem::SubVector< K, M > >::value_type >::field_type field_type;
35 typedef typename FieldTraits< typename DenseMatVecTraits< Fem::SubVector< K, M > >::value_type >::real_type real_type;
size_type dim() const
std::ptrdiff_t index() const
Traits::value_type value_type
constexpr Iterator end()
Traits::size_type size_type
constexpr Iterator begin()
T field_type
T real_type
Definition bartonnackmaninterface.hh:17
const Implementation & asImp() const
Definition bartonnackmaninterface.hh:37
An implementation of DenseVector to extract a portion, not necessarly contiguos, of a vector.
Definition subvector.hh:161
const value_type & operator[](size_type i) const
Definition subvector.hh:204
ThisType & operator=(const ThisType &other)
Copy entries.
Definition subvector.hh:190
BaseVectorImp BaseVectorType
Type of the base vector.
Definition subvector.hh:172
value_type FieldType
Type of vector elements.
Definition subvector.hh:178
IndexMapperImp IndexMapperType
Type of the index mapper.
Definition subvector.hh:175
SubVector(BaseVectorType &baseVector, IndexMapperType &&indexMapper)
Constructor.
Definition subvector.hh:181
K container_type
Definition subvector.hh:25
Fem::SubVector< K, M > derived_type
Definition subvector.hh:24
FieldTraits< typenameDenseMatVecTraits< Fem::SubVector< K, M > >::value_type >::real_type real_type
Definition subvector.hh:35
FieldTraits< typenameDenseMatVecTraits< Fem::SubVector< K, M > >::value_type >::field_type field_type
Definition subvector.hh:34
unsigned int operator[](unsigned int index) const
Maps an index onto another one.
Definition subvector.hh:57
unsigned int size() const
Returns the map's size.
Definition subvector.hh:69
const Implementation & asImp() const
Definition bartonnackmaninterface.hh:37
ThisType IndexMapperInterfaceType
Type of the interface.
Definition subvector.hh:54
unsigned int range() const
Returns the map's range.
Definition subvector.hh:63
IM IndexMapperType
Type of the implementation (Barton-Nackman)
Definition subvector.hh:51
Index mapper which simply adds an offset to the index.
Definition subvector.hh:83
OffsetSubMapper(ThisType &&)=default
OffsetSubMapper(unsigned int size, unsigned int offset)
Definition subvector.hh:88
unsigned int operator[](unsigned int i) const
Definition subvector.hh:105
OffsetSubMapper(const ThisType &)=default
Index mapper with static size which simply adds an offset to the index.
Definition subvector.hh:121
StaticOffsetSubMapper(ThisType &&)=default
static constexpr unsigned int size()
Definition subvector.hh:133
StaticOffsetSubMapper(const ThisType &)=default
StaticOffsetSubMapper(unsigned int offset)
Definition subvector.hh:126
unsigned int operator[](unsigned int i) const
Definition subvector.hh:143
static constexpr unsigned int range()
Definition subvector.hh:138
T copy(T... args)
T fill(T... args)
T forward(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8