|
| | Polynomial2D () |
| | Polynomial2D (std::size_t size) |
| constexpr std::size_t | dim () const |
| constexpr std::size_t | order () const |
| const T & | coef (std::size_t i, std::size_t j) const |
| T & | coef (std::size_t i, std::size_t j) |
| auto & | data () |
| const auto & | data () const |
| Polynomial2D< T, IsSpaceP > | derivative (std::size_t component) const |
| | Computes the derivative of the polynomial.
|
| Eigen::Vector< Polynomial2D< T, IsSpaceP >, 2 > | gradient () const |
| | Computes the gradient of the polynomial.
|
| T | evaluate (const Eigen::Vector< T, 2 > &x) const |
| | Evaluation of the polynomial with Horner's rule.
|
| T | evaluate (const T *x) const |
| | Evaluation of the polynomial with Horner's rule in a point passed as a raw buffer.
|
| T | integrate (const Eigen::Map< Eigen::Vector< T, -1 > > &monomial_integrals) const |
| template<typename U> |
| Polynomial2D< U, IsSpaceP > | to () const |
| | Converts the underlying type of the polynomial's coefficients to another type.
|
| Polynomial2D< T, IsSpaceP > & | operator+= (const Polynomial2D< T, IsSpaceP > &other) |
| | Adds another polynomial to the current polynomial in place.
|
| Polynomial2D< T, IsSpaceP > & | operator-= (const Polynomial2D< T, IsSpaceP > &other) |
| | Subtracts another polynomial from the current polynomial in place.
|
| Polynomial2D< T, IsSpaceP > & | operator*= (const Polynomial2D< T, IsSpaceP > &other) |
| | Multiplies the current polynomial by another polynomial in place.
|
| Polynomial2D< T, IsSpaceP > & | operator*= (const T &scalar) |
| | Multiplies the polynomial by a scalar in place.
|
| T | integrate (const datastructure::SimplexDataView< Dim, SimplexData, T, std::size_t > &monomial_integrals) const |
| | Integrate the polynomial given the monomials integrals.
|
| Polynomial2D< T, true > | primitive (std::size_t component) const |
| | Compute the primitive of the polynomial.
|
| Polynomial2D< T, true > & | operator+= (const Polynomial2D< T, true > &other) |
| Polynomial2D< T, true > & | operator-= (const Polynomial2D< T, true > &other) |
| Polynomial2D< T, true > & | operator*= (const Polynomial2D< T, true > &other) |
template<typename T, bool IsSpaceP = true>
class vulpes::polynomial::Polynomial2D< T, IsSpaceP >
Template class to represent and operate on polynomials in 2D.
This file contains the implementation of a polynomial class template that supports various operations, including addition, subtraction, multiplication, division, differentiation, integration, and more.
- Template Parameters
-
| IsSpaceP | select if the polynomial belongs to P space or Q space for optimized storage |
- Note
- The class is optimized for dense storage, meaning that it is adapt to cases where most of the coefficients are different from zero. Once the storage size is allocated when the class is constructed it cannot be changed.