6 #include "../CoCoAAdaptor.h"
12 template<
typename C,
typename O,
typename P>
13 class MultivariatePolynomial;
19 template<
typename C,
typename O,
typename P>
21 return { std::make_pair(p, 1) };
30 template<
typename C,
typename O,
typename P>
33 if (includeConstants) {
61 template<
typename C,
typename O,
typename P>
71 template<
typename C,
typename O,
typename P>
74 if (includeConstants) {
A small wrapper that configures logging for carl.
carl is the main namespace for the library.
auto irreducible_factors(const ContextPolynomial< Coeff, Ordering, Policies > &p, bool constants=true)
bool is_trivial(const Factors< MultivariatePolynomial< C, O, P >> &f)
std::map< Pol, uint > Factors
Factors< MultivariatePolynomial< C, O, P > > factorization(const MultivariatePolynomial< C, O, P > &p, bool includeConstants=true)
Try to factorize a multivariate polynomial.
Factors< MultivariatePolynomial< C, O, P > > trivialFactorization(const MultivariatePolynomial< C, O, P > &p)
Returns a factors datastructure containing only the full polynomial as single factor.
The general-purpose multivariate polynomial class.
std::size_t total_degree() const
Calculates the max.