12#ifndef DUMUX_RESERVED_BLOCK_VECTOR_HH
13#define DUMUX_RESERVED_BLOCK_VECTOR_HH
16#include <dune/common/reservedvector.hh>
24template<
class BlockType,
int capacity>
27 using Base = Dune::ReservedVector<BlockType, capacity>;
49 std::fill(this->begin(), this->end(), v);
56 for (
size_type i = 0; i < this->size(); ++i)
57 (*
this)[i] += other[i];
64 for (
size_type i = 0; i < this->size(); ++i)
65 (*
this)[i] -= other[i];
72 for (
size_type i = 0; i < this->size(); ++i)
80 for (
size_type i = 0; i < this->size(); ++i)
A arithmetic block vector type based on DUNE's reserved vector.
Definition: reservedblockvector.hh:26
ReservedBlockVector(const ReservedBlockVector &)=default
ReservedBlockVector & operator=(const ReservedBlockVector &)=default
ReservedBlockVector & operator-=(const ReservedBlockVector &other)
vector space subtraction
Definition: reservedblockvector.hh:62
ReservedBlockVector & operator+=(const ReservedBlockVector &other)
vector space addition
Definition: reservedblockvector.hh:54
ReservedBlockVector & operator/=(const typename BlockType::field_type &v)
division by scalar
Definition: reservedblockvector.hh:70
typename Base::size_type size_type
Definition: reservedblockvector.hh:30
ReservedBlockVector(ReservedBlockVector &&)=default
~ReservedBlockVector()=default
ReservedBlockVector()
Definition: reservedblockvector.hh:35
BlockType value_type
Definition: reservedblockvector.hh:31
ReservedBlockVector(size_type size)
Definition: reservedblockvector.hh:36
ReservedBlockVector & operator*=(const typename BlockType::field_type &v)
multiplication by scalar
Definition: reservedblockvector.hh:78