template<size_t K>
Rodin::Variational::PyramidIndex struct

Indexing of the tensor-product modes on the reference pyramid.

Public types

struct IJ
Pair of tensor-product indices of a pyramid mode.

Public static variables

static size_t Count constexpr
Number of entries.

Public static functions

static auto getLayerOffset(size_t layer) -> size_t constexpr
Gets the index offset of a pyramid layer.
static auto getIndex(size_t i, size_t j, size_t k) -> size_t constexpr
Gets the linear index of a tensor-product mode.
static void decode(size_t idx, size_t& i, size_t& j, size_t& k) constexpr
Decodes a linear index into its tensor-product indices.
static auto getTriangleLattice(size_t alpha) -> IJ constexpr
Gets the number of modes on a triangular lattice.
static auto getSideIndex(size_t local, size_t alpha) -> size_t constexpr
Gets the index of a mode on a pyramid side.