Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::CA::Tile< W, H > Struct Template Reference

Iterate a 2D lattice in W x H tiles. More...

#include <ca-traits.H>

Static Public Attributes

static constexpr std::size_t width = W
 
static constexpr std::size_t height = H
 

Detailed Description

template<std::size_t W, std::size_t H>
struct Aleph::CA::Tile< W, H >

Iterate a 2D lattice in W x H tiles.

Tiles are visited in row-major order over the tile grid, and the cells inside each tile are visited row-major as well. Useful as a cache-friendly schedule for the synchronous engine.

Implementations that don't have a meaningful tile interpretation (1D, 3D) fall back to RowMajor.

Template Parameters
Wtile width (cells along the last axis).
Htile height (cells along the first axis).

Definition at line 199 of file ca-traits.H.

Member Data Documentation

◆ height

template<std::size_t W, std::size_t H>
constexpr std::size_t Aleph::CA::Tile< W, H >::height = H
staticconstexpr

Definition at line 204 of file ca-traits.H.

◆ width

template<std::size_t W, std::size_t H>
constexpr std::size_t Aleph::CA::Tile< W, H >::width = W
staticconstexpr

Definition at line 203 of file ca-traits.H.


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