3 #ifndef DUNE_COMMON_POWER_HH
4 #define DUNE_COMMON_POWER_HH
22 template <
int m,
int p>
40 static constexpr
auto eval(
const T & a)
Some useful basic math stuff.
static constexpr auto eval(const T &a)
Definition: power.hh:40
@ power
Definition: power.hh:26
Dune namespace.
Definition: alignedallocator.hh:14
constexpr Mantissa power(Mantissa m, Exponent p)
Power method for integer exponents.
Definition: math.hh:73
Calculates m^p at compile time.
Definition: power.hh:24
Compute power for a run-time mantissa and a compile-time integer exponent.
Definition: power.hh:38