1 #ifndef EXTERIOR_DIMENSION_HPP
2 #define EXTERIOR_DIMENSION_HPP
22 constexpr
size_t binom(
size_t n,
size_t k)
29 (
binom(n-1,k-1) * n)/k :
30 (
binom(n-1,k) * n)/(n-k);
37 constexpr
size_t ExtDim(
size_t l,
size_t d)
45 return (r >= 0) ?
binom(r+d,d):0;
49 constexpr
size_t HDim(
int r,
size_t d)
55 constexpr
size_t PLDim(
int r,
size_t l,
size_t d)
61 constexpr
size_t kHDim(
int r,
size_t l,
size_t d)
70 constexpr
size_t dHDim(
int r,
size_t l,
size_t d)
72 return kHDim(r-1,l+1,d);
75 constexpr
size_t kPLDim(
int r,
size_t l,
size_t d)
78 for (
int i = 0; i <= r; ++i) {
85 constexpr
size_t dPLDim(
int r,
size_t l,
size_t d)
88 for (
int i = 0; i <= r; ++i) {
98 ((r >= 0)?
kPLDim(r-1,l+1,d) + 1 : 0)
constexpr size_t PLtrimmedDim(int r, size_t l, size_t d)
Dimension of trimmed polynomial spaces .
Definition: exterior_dimension.hpp:95
constexpr size_t kHDim(int r, size_t l, size_t d)
Dimension of the image of Koszul on homogeneous polynomials .
Definition: exterior_dimension.hpp:61
constexpr size_t ExtDim(size_t l, size_t d)
Dimension of the exterior algebra .
Definition: exterior_dimension.hpp:37
constexpr size_t dHDim(int r, size_t l, size_t d)
Dimension of the image of d on homogeneous polynomials .
Definition: exterior_dimension.hpp:70
constexpr size_t PLDim(int r, size_t l, size_t d)
Dimension of .
Definition: exterior_dimension.hpp:55
constexpr size_t kPLDim(int r, size_t l, size_t d)
Dimension of the image of Koszul on polynomials .
Definition: exterior_dimension.hpp:75
constexpr size_t PolyDim(int r, size_t d)
Dimension of .
Definition: exterior_dimension.hpp:43
constexpr size_t dPLDim(int r, size_t l, size_t d)
Dimension of the image of d on polynomials .
Definition: exterior_dimension.hpp:85
constexpr size_t HDim(int r, size_t d)
Dimension of homogeneous polynomials .
Definition: exterior_dimension.hpp:49
Definition: exterior_dimension.hpp:14
constexpr size_t factorial(size_t n)
Definition: exterior_dimension.hpp:16
constexpr size_t binom(size_t n, size_t k)
Definition: exterior_dimension.hpp:22