Go to the documentation of this file.
8 template <
int n,
int k,
typename B
int,
typename S
int,
typename T
int>
37 template <
int n,
int k,
typename S
int =
unsigned short,
typename T
int =
unsigned char>
60 static constexpr
unsigned int n_val = n;
61 static constexpr
unsigned int k_val = k;
64 static constexpr Tint
n_facets() {
return 2 * k; }
115 for (Tint i = 0; i < k; ++i)
118 for (Tint i = 0; i < n - k; ++i)
121 for (
unsigned int i = 0; i < n - 1; ++i)
142 std::array<Sint, n> new_positions =
positions;
146 return Element<n, k - 1, Sint, Tint>{ combi, new_positions };
149 template <
int,
int,
typename,
typename,
typename>
Tensor coordinates for a facet of dimension k in the complex of dimension n.
Definition: element.h:38
constexpr std::enable_if<(kk > 0), Combination< n, k - 1, T > >::type eliminate(unsigned int i) const
The combination obtained by eliminating the ith element.
Definition: combinations.h:98
constexpr Tint along_direction(Tint index) const
Mapping from local to global coordinate directions.
Definition: element.h:84
index
Definition: check_push_test.py:10
static constexpr Tint n_facets()
The number of facets in the boundary of this object.
Definition: element.h:64
static constexpr unsigned int index(const Combination< n, k, T > &combi)
The index of a combination within the lexicographic enumeration.
Definition: combinations.h:272
constexpr Sint across_coordinate(Tint index) const
The position of the element orthogonal to its extension.
Definition: element.h:95
static constexpr unsigned int n_val
Definition: element.h:60
Element(const Combination< n, k > &combi, const std::array< T, n > &pos)
Constructor with both data elements.
Definition: element.h:54
constexpr Tint across_direction(Tint index) const
Mapping of orthogonal coordinate directions to global.
Definition: element.h:92
Definition: combinations.h:8
static constexpr unsigned int k_val
Definition: element.h:61
T in(unsigned int i) const
The ith element which is part of the combination in descending order.
Definition: combinations.h:79
Combination< n, k > orientation
A Combination enumerating the coordinate directions along which the element is aligned.
Definition: element.h:47
constexpr Sint along_coordinate(Tint index) const
The coordinates in the k-dimensional element.
Definition: element.h:87
T out(unsigned int i) const
The ith element which is not part of the combination in descending order.
Definition: combinations.h:84
void print_debug(std::ostream &os) const
Function for printing the data stored in the element.
Definition: element.h:112
constexpr Sint operator[](Tint index) const
The coordinates in the n-dimensional chain complex.
Definition: element.h:74
constexpr Element< n, k - 1, Sint, Tint > facet(Tint index) const
Enumeration of the boundary facets of the element.
Definition: element.h:136
constexpr Tint direction_index() const
The index of the combination enumerating directions.
Definition: element.h:67
std::array< Sint, n > positions
The integer coordinates within the n-dimensional complex.
Definition: element.h:49
A slab of thickness one cell cut out of a tensor product chain complex.
Definition: element.h:9