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);
55 size_t getTermCount()
const;
A sparse univariate polynomial represented by a hash table mapping terms to coefficients.
size_t operator()(const mpz_class &i) const
The purpose of this file is to provide a definition of a hash map whenever possible.
HashMap< mpz_class, mpz_class > TermMap