Compute power for a run-time mantissa and a compile-time integer exponent. More...
#include <dune/common/power.hh>
Static Public Member Functions | |
template<typename T > | |
static T | eval (const T &a) |
Compute power for a run-time mantissa and a compile-time integer exponent.
Does some magic to create efficient code. Not benchmarked AFAIK.
p | The exponent |
static T Dune::Power< p >::eval | ( | const T & | a | ) | [inline, static] |