BernsteinPyramid
Bernstein basis on the reference pyramid.
Defined in Rodin/Variational/H1/H1Element.hpp
template < size_t K> class BernsteinPyramid;
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
static Real 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. |
static Real 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. |
static Real 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. |