3 #include "../MultivariatePolynomial.h"
4 #include "../UnivariatePolynomial.h"
18 template<
typename Coeff>
27 template<
typename Coeff,
typename Ordering,
typename Policies>
29 return std::accumulate(p.
begin(), p.
end(),
static_cast<std::size_t
>(0),
30 [](std::size_t cur,
const auto& t){ return cur + complexity(t); }
37 template<
typename Coeff>
39 std::size_t result = 0;
40 for (std::size_t deg = 0; deg <= p.
degree(); ++deg) {
carl is the main namespace for the library.
std::size_t complexity(const BasicConstraint< Poly > &c)
bool is_zero(const Interval< Number > &i)
Check if this interval is a point-interval containing 0.
This class represents a univariate polynomial with coefficients of an arbitrary type.
const std::vector< Coefficient > & coefficients() const &
Retrieves the coefficients defining this polynomial.
uint degree() const
Get the maximal exponent of the main variable.
The general-purpose multivariate polynomial class.
The general-purpose monomials.
exponent tdeg() const
Gives the total degree, i.e.
Monomial::Arg & monomial()
Get the monomial.