Allow number types as entries of matrix and vector types
All threads resolved!
All threads resolved!
So, for example, you can write
BlockVector<double>
instead of
BlockVector<FieldVector<double,1> >
and it will do what you expect it to do. With this patch, any type for which Dune::IsNumber<T>::value
returns true will end the recursion.
Edited by Oliver Sander
Merge request reports
Activity
added 17 commits
-
8cd5932e...7cb26196 - 16 commits from branch
master
- ae2ba187 - Allow number types as entries of a BlockVector
-
8cd5932e...7cb26196 - 16 commits from branch
- Resolved by Oliver Sander
Looking at the code I got the impression that it might be simpler to wrap the number into a pseudo-vector using something like:
auto&& vi = asVector(v[i]): // use vector interface of vi
where
asVector()
forwardsv[i]
if it's a vector and wraps it into a vector-like class if it's a number. This would avoid most of theHybrid::ifElse
magic.Edited by Carsten Gräseradded 1 commit
- 6e69b7e4 - Make the 'dot' method handle BlockVector<double>
added 12 commits
-
6e69b7e4...54ee6051 - 5 commits from branch
master
- 5e154290 - Allow number types as entries of a BlockVector
- 2aadce4e - Simplify Hybrid::ifElse calls
- 6008166c - Avoid signed/unsigned warning by explicity cast
- 8ffb7b25 - Remove a spurious duplicate test
- 056e1336 - Also test BlockVector<double> and BlockVector<std::complex<double> >
- 6e401bb9 - Minor tweaks to make clang + ifElse happier
- 5744a151 - Make the 'dot' method handle BlockVector<double>
Toggle commit list-
6e69b7e4...54ee6051 - 5 commits from branch
added 5 commits
Toggle commit listadded 8 commits
- b7fd252c - Rename BlockVectorTraits to BlockTraits
- 395f6d2f - Implement BCRSMatrix<double>
- 71f43896 - Implement BDMatrix<double>
- 31f9565c - Announce that all istl types can now be instantiated with numbers directly
- ded23d98 - Implement BTDMatrix<double>
- 88836c91 - Implement Matrix<double>
- dce9f27a - Implement VariableBlockVector<double>
- 1db62434 - Fix another test failure
Toggle commit listadded 11 commits
- 4f7ad3d5 - Allow number types as entries of a BlockVector
- fd4f1a12 - Avoid signed/unsigned warning by explicity cast
- dbf53070 - Remove a spurious duplicate test
- fd3b6585 - Also test BlockVector<double> and BlockVector<std::complex<double> >
- ad4ab82a - Test 'dot' methods for BlockVector<double>
- c91c332e - Implement BCRSMatrix<double>
- 7fb6680b - Implement BDMatrix<double>
- 23993089 - Announce that all istl types can now be instantiated with numbers directly
- bf472d9e - Implement BTDMatrix<double>
- e6a1c8e3 - Implement Matrix<double>
- d4e11161 - Implement VariableBlockVector<double>
Toggle commit listadded 2 commits
enabled an automatic merge when the pipeline for 8fc31db5 succeeds
mentioned in commit 01e85838
mentioned in merge request !261 (merged)
mentioned in commit 5007ec36
Please register or sign in to reply