Skip to content
Snippets Groups Projects

Make Field(Matrix|Vector) constructor from initializer_list constexpr

Merged Carsten Gräser requested to merge feature/constexpr-fieldmatrix-construction into master
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

Pipeline #60609 passed

Pipeline: Dune Nightly Test

#60612

    Pipeline passed for aa1526b9 on feature/constexpr-fieldmatrix-construction

    Approval is optional

    Merged by Simon PraetoriusSimon Praetorius 2 years ago (Feb 26, 2023 9:15pm UTC)

    Merge details

    • Changes merged into with 2900961f.
    • Deleted the source branch.
    • Auto-merge enabled

    Pipeline #60614 passed

    Pipeline: Dune Nightly Test

    #60615

      Pipeline passed for 2900961f on master

      Activity

      Filter activity
      • Approvals
      • Assignees & reviewers
      • Comments (from bots)
      • Comments (from users)
      • Commits & branches
      • Edits
      • Labels
      • Lock status
      • Mentions
      • Merge request status
      • Tracking
      Please register or sign in to reply
      Loading