24#ifndef DUMUX_RESERVED_BLOCK_VECTOR_HH
25#define DUMUX_RESERVED_BLOCK_VECTOR_HH
28#include <dune/common/reservedvector.hh>
36template<
class BlockType,
int capacity>
39 using Base = Dune::ReservedVector<BlockType, capacity>;
61 std::fill(this->begin(), this->end(), v);
68 for (
size_type i = 0; i < this->size(); ++i)
69 (*
this)[i] += other[i];
76 for (
size_type i = 0; i < this->size(); ++i)
77 (*
this)[i] -= other[i];
84 for (
size_type i = 0; i < this->size(); ++i)
92 for (
size_type i = 0; i < this->size(); ++i)
A arithmetic block vector type based on DUNE's reserved vector.
Definition: reservedblockvector.hh:38
ReservedBlockVector(const ReservedBlockVector &)=default
ReservedBlockVector & operator=(const ReservedBlockVector &)=default
ReservedBlockVector & operator-=(const ReservedBlockVector &other)
vector space subtraction
Definition: reservedblockvector.hh:74
ReservedBlockVector & operator+=(const ReservedBlockVector &other)
vector space addition
Definition: reservedblockvector.hh:66
ReservedBlockVector & operator/=(const typename BlockType::field_type &v)
division by scalar
Definition: reservedblockvector.hh:82
typename Base::size_type size_type
Definition: reservedblockvector.hh:42
ReservedBlockVector(ReservedBlockVector &&)=default
~ReservedBlockVector()=default
ReservedBlockVector()
Definition: reservedblockvector.hh:47
BlockType value_type
Definition: reservedblockvector.hh:43
ReservedBlockVector(size_type size)
Definition: reservedblockvector.hh:48
ReservedBlockVector & operator*=(const typename BlockType::field_type &v)
multiplication by scalar
Definition: reservedblockvector.hh:90