|
| | Polynomial3D () |
| | Polynomial3D (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, std::size_t k) const |
| T & | coef (std::size_t i, std::size_t j, std::size_t k) |
| auto & | data () |
| const auto & | data () const |
| Eigen::Vector< Polynomial3D< T, IsSpaceP >, 3 > | gradient () const |
| | Computes the gradient of the polynomial.
|
| Polynomial3D< T, IsSpaceP > | derivative (std::size_t component) const |
| | Computes the derivative of the polynomial.
|
| T | integrate (const Eigen::Map< Eigen::Vector< T, -1 > > &monomial_integrals) const |
| T | evaluate (const Eigen::Vector< T, 3 > &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.
|
| template<typename U> |
| Polynomial3D< U, IsSpaceP > | to () const |
| | Cast the polynomial to a different coefficient type.
|
| Polynomial3D< T, IsSpaceP > & | operator+= (const Polynomial3D< T, IsSpaceP > &other) |
| Polynomial3D< T, IsSpaceP > & | operator-= (const Polynomial3D< T, IsSpaceP > &other) |
| Polynomial3D< T, IsSpaceP > & | operator*= (const Polynomial3D< T, IsSpaceP > &other) |
| Polynomial3D< T, IsSpaceP > & | operator*= (const T &scalar) |
| T | integrate (const datastructure::SimplexDataView< Dim, SimplexData, T, std::size_t > &monomial_integrals) const |
| | Integrate the polynomial given the monomials integrals.
|
| Polynomial3D< T, true > | primitive (std::size_t component) const |
| | Compute the primitive of the polynomial.
|
| Polynomial3D< T, true > & | operator+= (const Polynomial3D< T, true > &other) |
| Polynomial3D< T, true > & | operator-= (const Polynomial3D< T, true > &other) |
| Polynomial3D< T, true > & | operator*= (const Polynomial3D< T, true > &other) |
template<typename T, bool IsSpaceP = true>
class vulpes::polynomial::Polynomial3D< T, IsSpaceP >
Template class to represent and operate on polynomials in 3D.
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.