dune-common  2.5.0
Static Public Member Functions | List of all members
Dune::Power< p > Struct Template Reference

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)
 

Detailed Description

template<int p>
struct Dune::Power< p >

Compute power for a run-time mantissa and a compile-time integer exponent.

Does some magic to create efficient code. Not benchmarked AFAIK.

Template Parameters
pThe exponent

The documentation for this struct was generated from the following file: