5#ifndef DUNE_COMMON_POWER_HH
6#define DUNE_COMMON_POWER_HH
8#warning The header power.hh is deprecated. Use power from math.hh instead.
26 template <
int b,
int p>
44 static constexpr auto eval(
const T & a)
Some useful basic math stuff.
static constexpr int power
power stores b^p
Definition power.hh:30
static constexpr auto eval(const T &a)
Definition power.hh:44
Dune namespace.
Definition alignedallocator.hh:13
constexpr Base power(Base m, Exponent p)
Power method for integer exponents.
Definition math.hh:75
Calculates b^p at compile time.
Definition power.hh:28
Compute power for a run-time base and a compile-time integer exponent.
Definition power.hh:42