Polynomials. More...
Enumerations | |
enum class | type { legendre = 0 , bernstein = 1 } |
Variants of a Lagrange space that can be created. | |
Functions | |
std::pair< std::vector< double >, std::array< std::size_t, 2 > > | tabulate (polynomials::type polytype, cell::type celltype, int d, std::experimental::mdspan< const double, std::experimental::dextents< std::size_t, 2 >> x) |
Tabulate a set of polynomials. More... | |
int | dim (polynomials::type polytype, cell::type cell, int d) |
Dimension of a polynomial space. More... | |
Polynomials.
int basix::polynomials::dim | ( | polynomials::type | polytype, |
cell::type | cell, | ||
int | d | ||
) |
Dimension of a polynomial space.
[in] | polytype | The polynomial type |
[in] | cell | The cell type |
[in] | d | The polynomial degree |
d
std::pair< std::vector< double >, std::array< std::size_t, 2 > > basix::polynomials::tabulate | ( | polynomials::type | polytype, |
cell::type | celltype, | ||
int | d, | ||
std::experimental::mdspan< const double, std::experimental::dextents< std::size_t, 2 >> | x | ||
) |
Tabulate a set of polynomials.
[in] | polytype | Polynomial type |
[in] | celltype | Cell type |
[in] | d | Polynomial degree |
[in] | x | Points at which to evaluate the basis. The shape is (number of points, geometric dimension). |
(basis index, number of points)
.