add dynamic and static methods for factorials and binomials
Added some dynamic and static methods for calculating factorials and binomials. There are several different implementation in several modules of varying accessibility and age which can be replaced by this.
Merge request reports
Activity
- Resolved by Janick Gerstenberger
- Resolved by Janick Gerstenberger
@carsten.graeser I had some problems with constexpr functions where the loop variable is supplied as an argument with gcc5 in the past. Also the range method is not declared constexpr (despite the constructor of the implementations being constexpr).
@carsten.graeser Since the version you suggested works on all compilers that support a reasonable amount of c++14 I changed the implementation.
@janick.gerstenberger: The question is, if the list of those compilers is a superset of the compiler we support in master.
@carsten.graeser it works with gcc5+, clang3.5+. icc18.0 appears to work in godbolt. if i remember the meeting notes correctly that should cover the master and 2.6 .
added 1 commit
- 3828e52f - add dynamic and static methods for factorials and binomials
mentioned in merge request dune-localfunctions!105 (merged)
mentioned in merge request dune-fem/dune-fem!227
mentioned in merge request staging/dune-typetree!37 (merged)
added 252 commits
-
30470fc9...708acf85 - 250 commits from branch
master
- 51a56ad3 - add dynamic and static methods for factorials and binomials
- 68e5519d - properly handle unsigned underflows
-
30470fc9...708acf85 - 250 commits from branch
- Resolved by Janick Gerstenberger