18#ifndef UNI_HASH_POLYNOMIAL_GUARD
19#define UNI_HASH_POLYNOMIAL_GUARD
The purpose of this file is to provide a definition of a hash map whenever possible.
void nameFactoryRegister(NameFactory< AbstractProduct > &factory)
Registers the string returned by ConcreteProduct::getStaticName() to a function that default-construc...
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,...