|
Frobby 0.10.0
|
#include <HashPolynomial.h>
Public Member Functions | |
| HashPolynomial (size_t varCount=0) | |
| void | clearAndSetVarCount (size_t varCount) |
| void | add (const mpz_class &coef, const Term &term) |
| void | add (bool plus, const Term &term) |
| void | feedTo (const TermTranslator &translator, CoefBigTermConsumer &consumer, bool inCanonicalOrder) const |
| size_t | getTermCount () const |
A sparse multivariate polynomial represented by a hash table mapping terms to coefficients. This allows to avoid duplicate terms without a large overhead.
| void HashPolynomial::add | ( | bool | plus, |
| const Term & | term ) |
Add +term or -term to the polynomial depending on whether plus is true or false, respectively.
| void HashPolynomial::add | ( | const mpz_class & | coef, |
| const Term & | term ) |
Add coef*term to the polynomial.