Dune::Power< p > Struct Template Reference
[Common]

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

#include <dune/common/power.hh>

List of all members.

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:
p The exponent

Member Function Documentation

template<int p>
template<typename T >
static T Dune::Power< p >::eval ( const T &  a  )  [inline, static]

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 25 Mar 2018 for dune-common by  doxygen 1.6.1