Commit 39995de5 authored by Oliver Sander's avatar Oliver Sander

[!287] Simplify implementation for vectors with scalar entries

Merge branch 'feature/simplify-scalar-entries' into 'master'

ref:core/dune-istl Using the new Impl::asVector() from dune-common we can get
rid of

-   several Hybrid::isElse() constructions used to implement special cases for
    isNumber,
-   undefined behaviour invoked by toVector() due to the latter violating
    strict aliasing rules.

This also removed the dangerous toVector() methods. This is only a partial
solution to [#63]. We also need to do the same for toMatrix() which requires
an analogue Impl::asMatrix() function and a ScalarMatrixView wrapper class.

See merge request [!287]

  [#63]: gitlab.dune-project.org/NoneNone/issues/63
  [!287]: gitlab.dune-project.org/core/dune-istl/merge_requests/287
parents 37311d14 d883ca6e
Pipeline #17821 passed with stage
in 26 minutes and 52 seconds