![]() |
Vulpes
0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
|
Base template class for a general polynomial. More...
#include <polynomial.hpp>
Public Member Functions | |
| T | evaluate (const T *x) const |
| Evaluate the polynomial in a given point passed as a row array. | |
| T | evaluate (const Eigen::Vector< T, Dim > &x) const |
| Evaluate the polynomial in a given point. | |
| template<bool SimplexData> | |
| T | integrate (const datastructure::SimplexDataView< Dim, SimplexData, T, std::size_t > &monomial_integrals) const |
| Integrate the polynomial given the monomials integrals. | |
| Eigen::Vector< Polynomial, Dim > | gradient () const |
| Compute the gradient of the polynomial. | |
| Polynomial | derivative (std::size_t component) const |
| Compute the derivative of the polynomial. | |
| Polynomial | primitive (std::size_t component) const |
| Compute the primitive of the polynomial. | |
| Polynomial & | operator+= (const Polynomial &other) |
| Polynomial & | operator-= (const Polynomial &other) |
| Polynomial & | operator*= (const Polynomial &other) |
| Polynomial & | operator*= (const T &scalar) |
Protected Member Functions | |
| Polynomial * | self () |
| const Polynomial * | self () const |
Friends | |
| Polynomial | operator+ (Polynomial lhs, const Polynomial &rhs) |
| Polynomial | operator- (Polynomial lhs, const Polynomial &rhs) |
| Polynomial | operator* (Polynomial lhs, const Polynomial &rhs) |
| Polynomial | operator* (const T &lhs, Polynomial rhs) |
| Polynomial | operator* (Polynomial lhs, const T &rhs) |
Base template class for a general polynomial.
There are two main kind of polynomials depending of their storage: dense and sparse. Dense ones are available in 1D, 2D, and 3D. Sparse one are available in any dimension.
|
inline |
Compute the derivative of the polynomial.
|
inline |
Evaluate the polynomial in a given point.
|
inline |
Evaluate the polynomial in a given point passed as a row array.
|
inline |
Compute the gradient of the polynomial.
|
inline |
Integrate the polynomial given the monomials integrals.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Compute the primitive of the polynomial.
|
inlineprotected |
|
inlineprotected |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |