Brick Library  0.1
Performance-portable stencil datalayout & codegen
Static Public Attributes | List of all members
static_power< base, exp > Struct Template Reference

Compute \(base^{exp}\) Statically compute exponentials. More...

#include <brick.h>

Inheritance diagram for static_power< base, exp >:
[legend]

Static Public Attributes

static constexpr unsigned value = base * static_power<base, exp - 1>::value
 

Detailed Description

template<unsigned base, unsigned exp>
struct static_power< base, exp >

Compute \(base^{exp}\) Statically compute exponentials.

Member Data Documentation

◆ value

template<unsigned base, unsigned exp>
constexpr unsigned static_power< base, exp >::value = base * static_power<base, exp - 1>::value
staticconstexpr

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