HyperHDG
|
Classes | |
class | Combination |
Dataset for a combination k out of n. More... | |
struct | Combinations |
class | Element |
Tensor coordinates for a facet of dimension k in the complex of dimension n . More... | |
class | Lexicographic |
Lexicographic enumeration of the k -dimensional faces in a tensor product chain complex of dimension n . More... | |
class | Slab |
A slab of thickness one cell cut out of a tensor product chain complex. More... | |
Enumerations | |
enum | boundaries { both, none, periodic } |
Functions | |
template<typename T = unsigned int> | |
constexpr T | binomial (T n, T k) |
Compute the binomial coefficient n over k. More... | |
template<typename T = unsigned int, T n, T k> | |
constexpr std::array< T, n - k > | compute_complement (std::array< T, k > combi) |
enum TPCC::boundaries |
|
constexpr |
Compute the binomial coefficient n over k.
This function is constexpr, such that it can be eliminated completely if #n and #k are known at compile time.
|
constexpr |
Given a combination as an array, compute its complement in the set of numbers from 0
to n-1
.