Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/basix/v0.8.0/cpp/namespacebasix_1_1polynomials.html

# Basix 0.4.1

## HomeInstallationDemosC++ docsPython docs

basix::polynomials Namespace Reference

Polynomials. More...

## Enumerations

enum  type { legendre = 0 }
An enum defining the variants of a Lagrange space that can be created.

## Functions

xt::xtensor< double, 2 > tabulate (polynomials::type polytype, cell::type celltype, int d, const xt::xtensor< double, 2 > &x)

int dim (polynomials::type polytype, cell::type cell, int d)

Polynomials.

## ◆ dim()

 int basix::polynomials::dim ( polynomials::type polytype, cell::type cell, int d )

Dimension of a polynomial space

Parameters
 [in] polytype The polynomial type [in] cell The cell type [in] d The polynomial degree
Returns
The number terms in the basis spanning a space of polynomial degree d

## ◆ tabulate()

 xt::xtensor< double, 2 > basix::polynomials::tabulate ( polynomials::type polytype, cell::type celltype, int d, const xt::xtensor< double, 2 > & x )

Tabulate a set of polynomials.

Parameters
 [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).
Returns
Polynomial sets, for each derivative, tabulated at points. The shape is (number of points, basis index).