Basix
polynomials.h
1 // Copyright (c) 2021 Matthew Scroggs
2 // FEniCS Project
3 // SPDX-License-Identifier: MIT
4 
5 #pragma once
6 
7 #include "cell.h"
8 #include <xtensor/xtensor.hpp>
9 
12 {
14 enum class type
15 {
16  legendre = 0,
17 };
18 
28 xt::xtensor<double, 2> tabulate(polynomials::type polytype, cell::type celltype,
29  int d, const xt::xtensor<double, 2>& x);
30 
37 int dim(polynomials::type polytype, cell::type cell, int d);
38 
39 } // namespace basix::polynomials
type
Cell type.
Definition: cell.h:19
Polynomials.
Definition: polynomials.h:12
int dim(polynomials::type polytype, cell::type cell, int d)
Definition: polynomials.cpp:26
type
An enum defining the variants of a Lagrange space that can be created.
Definition: polynomials.h:15
xt::xtensor< double, 2 > tabulate(polynomials::type polytype, cell::type celltype, int d, const xt::xtensor< double, 2 > &x)
Definition: polynomials.cpp:12