|
Frobby 0.10.0
|
Public Member Functions | |
| Ideal (size_t variableCount) | |
| Ideal (const Ideal &ideal) | |
| Ideal & | operator= (const Ideal &ideal) |
| void | addExponent (const mpz_t exponent) |
| void | addExponent (int exponent) |
| void | addExponent (unsigned int exponent) |
Friends | |
| class | FrobbyImpl::FrobbyIdealHelper |
| void Ideal::addExponent | ( | const mpz_t | exponent | ) |
Call addExponent once for each variable to add a term one exponent at a time. This object keeps track of how many times you called addExponent to know which variable is to be raised to the passed-in exponent. Frobby does not alter the passed-in exponent and retains no reference to it. The exponent must be non-negative. It is allowed to mix the different overloads even within the same term.
If the number of variables is zero, then a call to addExponent adds the element 1 as a generator. In that case it makes no difference what the value of exponent is.