Add the TupleVector class
The TupleVector
class is a multitype container without
algebraic operations. It relates to Dune::MultiTypeBlockVector
like std::vector
relates to Dune::BlockVector
. This is achived
by augmenting std::tuple
by the following:
-
operator[]
forDune::index_constant
arguments static size()
You can now write code like this which will work for multitype and classic vector like containers:
using namespace Dune::Hybrid;
forEach(integralRange(size(v)), [&](auto i) {
v[i] = i;
});
Notice that TupleVector
was already present as implementation detail
of two tests in dune-common and that dune-functions and dune-solvers
also both contained their own variants
Merge request reports
Activity
Milestone changed to %DUNE 2.5.0
@carsten.graeser What is the status here?
Added 88 commits:
-
e7568cc5...401ad9be - 86 commits from branch
master
- 38d5ba56 - Add the TupleVector class
- 3d5152be - [test][cleanup] Use Dune::TupleVector instead of local implementation
-
e7568cc5...401ad9be - 86 commits from branch
Mentioned in commit 40752c75
Mentioned in commit d0a2c81c
Mentioned in merge request !168 (merged)
Mentioned in commit c39a2297
mentioned in commit 772d88e3
Please register or sign in to reply