18 #ifndef UNI_HASH_POLYNOMIAL_GUARD
19 #define UNI_HASH_POLYNOMIAL_GUARD
33 return mpz_fdiv_ui(i.get_mpz_t(), 2106945901u);
45 void add(
bool plus,
const mpz_class& exponent);
48 void add(
int coef,
size_t exponent);
51 void add(
const mpz_class& coef,
const mpz_class& exponent);
The purpose of this file is to provide a definition of a hash map whenever possible.
size_t operator()(const mpz_class &i) const
A sparse univariate polynomial represented by a hash table mapping terms to coefficients.
HashMap< mpz_class, mpz_class > TermMap
size_t getTermCount() const
void feedTo(CoefBigTermConsumer &consumer, bool inCanonicalOrder=false) const
void add(bool plus, const mpz_class &exponent)
Add +t^exponent or -t^exponent to the polynomial depending on whether plus is true or false,...