28 [[nodiscard]]
int order() const noexcept {
return order_; }
30 [[nodiscard]]
Index size() const noexcept {
return static_cast<Index>(degrees_.size()); }
38 std::vector<int> degrees_;
39 std::vector<std::array<int, 3>> indices_;
40 std::vector<Real> scale_;
Definition orthogonal_basis.hpp:23
void evaluate(const Point< Dim > &xi, std::span< Real > values) const
Orthonormal values of all functions at a point of the unit simplex (size() entries).
Index size() const noexcept
Number of functions: (p+1)(p+2)/2 (2D), (p+1)(p+2)(p+3)/6 (3D).
Definition orthogonal_basis.hpp:30
int order() const noexcept
Definition orthogonal_basis.hpp:28
int degree(Index i) const
Total degree of function i.
Definition orthogonal_basis.hpp:32
Definition cell_layout.hpp:13
Eigen::Matrix< Real, Dim, 1 > Point
Definition types.hpp:27
constexpr std::size_t as_size(Index i) noexcept
Converts a non-negative global or local index to a container index.
Definition types.hpp:34
std::int64_t Index
global indices (DoFs, entities)
Definition types.hpp:17