![]() |
Vulpes
0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
|
Classes | |
| class | SparsePolynomial |
| Template class to represent and operate on polynomials in nD. More... | |
| class | PolynomialBase |
| Base template class for a general polynomial. More... | |
| class | Polynomial |
| Template class to represent and operate on polynomials. More... | |
| class | Polynomial2D |
| Template class to represent and operate on polynomials in 2D. More... | |
| class | Polynomial3D |
| Template class to represent and operate on polynomials in 3D. More... | |
Typedefs | |
| template<typename T, std::size_t Dim, bool IsSpaceP = true, typename = std::enable_if_t<(Dim < 4)>> | |
| using | NdPolynomial |
| wrapper for dense polynomials in 1D, 2D and 3D | |
Functions | |
| template<typename T> | |
| std::vector< Polynomial< T > > | buildLegendrePolynomials (std::size_t deg) |
| Builds a set of Legendre polynomials up to a given degree. | |
| using vulpes::polynomial::NdPolynomial |
wrapper for dense polynomials in 1D, 2D and 3D
| std::vector< Polynomial< T > > vulpes::polynomial::buildLegendrePolynomials | ( | std::size_t | deg | ) |
Builds a set of Legendre polynomials up to a given degree.
The Legendre polynomials \( P_n(x) \) are generated using the recurrence relation (Bonnet formula):
\[P_{n+1}(x) = \frac{(2n+1) \cdot x \cdot P_n(x) - n \cdot P_{n-1}(x)}{n+1} \]
with the initial conditions:
\[P_0(x) = 1, \quad P_1(x) = x \]
| T | The type of the coefficients in the polynomials. |
| deg | The degree up to which Legendre polynomials should be built. |