|
dune-functions 2.10
|
Loading...
Searching...
No Matches
hierarchicvectorwrapper.hh
Go to the documentation of this file.
11#warning The header dune/functions/functionspacebases/hierarchicvectorwrapper.hh is deprecated and will be removed after release 2.10.
50 using type = typename DefaultCoefficientTypeHelper<V, StaticSizeOrZero<MultiIndex>::value>::type;
92 using Coefficient = std::conditional_t< std::is_same_v<Imp::DeducedCoefficientTag,CO> and HasStaticSize_v<MultiIndex>,
103 static void resizeHelper(C& c, const SizeProvider& sizeProvider, typename SizeProvider::SizePrefix prefix)
107 DUNE_THROW(RangeError, "Can't resize scalar vector entry v[" << prefix << "] to size(" << prefix << ")=" << size);
113 static void apply(I&& i, C& c, const SizeProvider& sizeProvider, typename SizeProvider::SizePrefix prefix)
123 static void resizeHelper(C& c, const SizeProvider& sizeProvider, typename SizeProvider::SizePrefix prefix)
130 DUNE_THROW(RangeError, "Can't resize statically sized vector entry v[" << prefix << "] of size " << c.size() << " to size(" << prefix << ")=" << size);
141 static void resizeHelper(C& c, const SizeProvider& sizeProvider, typename SizeProvider::SizePrefix prefix)
147 DUNE_THROW(RangeError, "Can't resize dynamically sized vector entry v[" << prefix << "]. Its size is 0 but the target size is unknown due to size(" << prefix << ")=0.");
185 static_assert(not std::is_same_v<Imp::DeducedCoefficientTag,Entry<MultiIndex>>, "Coefficient type for HierarchicVectorWrapper and given multi-index type cannot be determined automatically!");
192 static_assert(not std::is_same_v<Imp::DeducedCoefficientTag,Entry<MultiIndex>>, "Coefficient type for HierarchicVectorWrapper and given multi-index type cannot be determined automatically!");
199 static_assert(not std::is_same_v<Imp::DeducedCoefficientTag,Entry<MultiIndex>>, "Coefficient type for HierarchicVectorWrapper and given multi-index type cannot be determined automatically!");
206 static_assert(not std::is_same_v<Imp::DeducedCoefficientTag,Entry<MultiIndex>>, "Coefficient type for HierarchicVectorWrapper and given multi-index type cannot be determined automatically!");
V & makeHierarchicVectorForMultiIndex(V &v)
Definition hierarchicvectorwrapper.hh:243
HierarchicVectorWrapper< V > hierarchicVector(V &v)
Definition hierarchicvectorwrapper.hh:231
constexpr index_constant< 0 > _0
int size() const
static Type apply(T &t)
constexpr auto size(const T &t)
std::ptrdiff_t index() const
#define DUNE_THROW(E, m)
A wrapper providing multiindex access to vector entries.
Definition hierarchicvectorwrapper.hh:90
Entry< MultiIndex > & operator()(const MultiIndex &index)
Definition hierarchicvectorwrapper.hh:204
Entry< MultiIndex > & operator[](const MultiIndex &index)
Definition hierarchicvectorwrapper.hh:190
const Entry< MultiIndex > & operator[](const MultiIndex &index) const
Definition hierarchicvectorwrapper.hh:183
Vector & vector()
Definition hierarchicvectorwrapper.hh:215
Coefficient< MultiIndex > Entry
Definition hierarchicvectorwrapper.hh:168
const Vector & vector() const
Definition hierarchicvectorwrapper.hh:210
HierarchicVectorWrapper(Vector &vector)
Definition hierarchicvectorwrapper.hh:170
const Entry< MultiIndex > & operator()(const MultiIndex &index) const
Definition hierarchicvectorwrapper.hh:197
void resize(const SizeProvider &sizeProvider)
Definition hierarchicvectorwrapper.hh:175
T size(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8