5 template<
typename CoeffType>
38 const std::map<std::size_t, CoeffType>&
coeffs()
const {
59 template<
typename Term>
71 template<
typename CoeffType>
73 std::map<Variable, VarInfo<CoeffType>>
m_data;
carl is the main namespace for the library.
std::size_t exponent
Type of an exponent.
A Variable represents an algebraic variable that can be used throughout carl.
Represents a single term, that is a numeric coefficient and a monomial.
std::size_t max_degree() const
VarInfo(std::size_t maxDegree, std::size_t min_degree, std::size_t occurence, std::map< std::size_t, CoeffType > &&coeffs)
std::size_t min_degree() const
void increase_num_occurences()
std::map< std::size_t, CoeffType > m_coeffs
Coefficients of the variable. Maps from exponent to the coefficient.
const std::map< std::size_t, CoeffType > & coeffs() const
std::size_t m_num_occurences
Number of terms a variable occurs in.
std::size_t num_occurences() const
void update_coeff(std::size_t exponent, const Term &t)
std::size_t m_max_degree
Maximal degree variable occurs with.
void raise_max_degree(std::size_t degree)
void lower_min_degree(std::size_t degree)
std::size_t m_min_degree
Minimal non-zero degree variable occurs with.
VarInfo< CoeffType > & var(Variable var)
std::map< Variable, VarInfo< CoeffType > > m_data
const VarInfo< CoeffType > & var(Variable var) const
bool occurs(Variable var) const