Brick Library 0.1
Performance-portable stencil datalayout & codegen
Loading...
Searching...
No Matches
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.

The most basic brick definition used for JIT

Member Data Documentation

◆ value

template<unsigned base, unsigned exp>
static 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 files: