13 std::map<Variable, FactorizedPolynomial<P>> varFPolMap;
14 varFPolMap.insert(std::make_pair(var, value));
15 std::map<Variable, P> varPolMap;
16 varPolMap.insert(std::make_pair(var, value.
polynomial()));
26 std::map<Variable, P> varPolMap;
27 for (
const auto& varFPolPair : substitutions) {
28 varPolMap.insert(varPolMap.end(), std::make_pair(varFPolPair.first, varFPolPair.second.polynomial()));
39 if (!existsFactorization(p)) {
47 if (subResult.is_constant()) {
50 return std::move(result);
55 return std::move(result);
75 return std::move(result);
83 template<
typename P,
typename Subs>
85 if (!existsFactorization(p)) {
92 if (subResult.is_constant()) {
carl is the main namespace for the library.
std::size_t exponent
Type of an exponent.
Coeff substitute(const Monomial &m, const std::map< Variable, Coeff > &substitutions)
Applies the given substitutions to a monomial.
P computePolynomial(const FactorizedPolynomial< P > &_fpoly)
Obtains the polynomial (representation) of this factorized polynomial.
Interval< Number > pow(const Interval< Number > &i, Integer exp)
A Variable represents an algebraic variable that can be used throughout carl.
bool factorizedTrivially() const
std::shared_ptr< CACHE > pCache() const
const Factorization< P > & factorization() const
const CoeffType & coefficient() const
CoeffType constant_part() const
Retrieves the constant term of this polynomial or zero, if there is no constant term.
const P & polynomial() const
std::pair< typename super::iterator, bool > insert(typename super::const_iterator _hint, const std::pair< FactorizedPolynomial< P >, carl::exponent > &_val)