Frobby
0.9.5
|
#include "Term.h"
Go to the source code of this file.
Functions | |
Exponent | median (const Exponent *a, size_t varCount) |
Returns the lower median exponent of a. More... | |
Exponent | median (const Term &a) |
Exponent | medianPositive (const Exponent *a, size_t varCount) |
Returns the lower median of the positive exponents of a. More... | |
Exponent | medianPositive (const Term &a) |
void | totalDegree (mpz_class &res, const Exponent *a, size_t varCount) |
Puts the sum of the entries of a into res. More... | |
void | totalDegree (mpz_class &res, const Term &a) |
Exponent | minimumPositive (const Exponent *a, size_t varCount) |
Returns the smallest positive exponent of a. More... | |
Exponent | minimumPositive (const Term &a) |
Exponent | maximum (const Exponent *a, size_t varCount) |
Returns the largest exponent of a. More... | |
Exponent | maximum (const Term &a) |
Returns the largest exponent of a.
Returns zero if varCount is zero.
Definition at line 68 of file TermExtra.cpp.
Definition at line 61 of file TermExtra.h.
Returns the lower median exponent of a.
Returns zero if varCount is zero.
Definition at line 25 of file TermExtra.cpp.
Definition at line 32 of file TermExtra.h.
Returns the lower median of the positive exponents of a.
Returns zero if all terms of a are zero.
Definition at line 35 of file TermExtra.cpp.
Definition at line 39 of file TermExtra.h.
Returns the smallest positive exponent of a.
Returns zero if all entries of a are zero.
Definition at line 55 of file TermExtra.cpp.
Definition at line 54 of file TermExtra.h.
void totalDegree | ( | mpz_class & | res, |
const Exponent * | a, | ||
size_t | varCount | ||
) |
Puts the sum of the entries of a into res.
res has to be an mpz_class as opposed to an Exponent since the sum could cause an overflow.
Definition at line 49 of file TermExtra.cpp.
|
inline |
Definition at line 47 of file TermExtra.h.