Brick Library 0.1
Performance-portable stencil datalayout & codegen
Loading...
Searching...
No Matches
Static Public Attributes | List of all members
cal_offs< dim, off, offs... > Struct Template Reference

Compute the offset Calculating the offset within the adjacency list. More...

#include <brick.h>

Static Public Attributes

static constexpr unsigned value = off * static_power<3, dim - 1>::value + cal_offs<dim - 1, offs...>::value
 

Detailed Description

template<unsigned dim, unsigned off, unsigned ... offs>
struct cal_offs< dim, off, offs... >

Compute the offset Calculating the offset within the adjacency list.

Template Parameters
dimCurrent dimension
offCAR
offsCDR

Member Data Documentation

◆ value

template<unsigned dim, unsigned off, unsigned ... offs>
constexpr unsigned cal_offs< dim, off, offs... >::value = off * static_power<3, dim - 1>::value + cal_offs<dim - 1, offs...>::value
staticconstexpr

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