Make Field(Matrix|Vector) constructor from initializer_list constexpr
All threads resolved!
All threads resolved!
This allos to do
constexpr auto M = Dune::FieldMatrix<double,2,2>{ {1,2}, {3,4}};
Notive that copy_n
is not constexpr
. Hence we implement this
with a manual for loop.
Edited by Carsten Gräser
Merge request reports
Activity
assigned to @simon.praetorius
added 1 commit
- 6f3f0d76 - Make Field(Matrix|Vector) constructor from initializer_list constexpr
- Resolved by Simon Praetorius
Nice! Probably we could make most methods
constexpr
, but this is for another time.Do you want to add a changelog entry? Give me a sign when it is ready to be merged.
added 1 commit
- aa1526b9 - [doc] Add changelog entry about constexpr constructors of FieldMatrix and FieldVector
mentioned in commit 2900961f
Please register or sign in to reply