template<size_t K>
Rodin::Variational::BernsteinPyramid class

Bernstein basis on the reference pyramid.

Public static functions

static auto getBinomial(size_t n, size_t k) -> Real
Gets a binomial coefficient.
static auto getBasis(size_t n, size_t i, Real x) -> Real
Gets the basis function of a local degree of freedom.
static auto getDerivative(size_t n, size_t i, Real x) -> Real
Gets the derivative of the basis function.

Function documentation

template<size_t K>
static Real Rodin::Variational::BernsteinPyramid<K>::getBinomial(size_t n, size_t k)

Gets a binomial coefficient.

Parameters
n Nonnegative upper argument of the binomial coefficient.
k Lower argument of the binomial coefficient.
Returns A binomial coefficient.

template<size_t K>
static Real Rodin::Variational::BernsteinPyramid<K>::getBasis(size_t n, size_t i, Real x)

Gets the basis function of a local degree of freedom.

Parameters
n Basis or lattice index in the reference element.
i Local basis-function index.
x Reference-coordinate component at which the basis is evaluated.
Returns Value of the selected local basis function at the evaluation point.

template<size_t K>
static Real Rodin::Variational::BernsteinPyramid<K>::getDerivative(size_t n, size_t i, Real x)

Gets the derivative of the basis function.

Parameters
n Basis or lattice index in the reference element.
i Index of the requested entry.
x Reference-coordinate component at which the basis is evaluated.
Returns Derivative evaluated at the supplied point.