Frobby
0.9.5
|
#include <Polynomial.h>
Classes | |
struct | CoefTerm |
Public Member Functions | |
Polynomial () | |
Polynomial (size_t varCount) | |
size_t | getVarCount () const |
size_t | getTermCount () const |
const mpz_class & | getCoef (size_t index) const |
const Term & | getTerm (size_t index) const |
void | add (const mpz_class &coef, const Term &term) |
void | sortTermsReverseLex (bool collect=true) |
void | clear () |
void | clearAndSetVarCount (size_t varCount) |
void | print (FILE *out) |
void | print (ostream &out) |
Private Attributes | |
vector< CoefTerm > | _terms |
size_t | _varCount |
Definition at line 23 of file Polynomial.h.
Polynomial::Polynomial | ( | ) |
Definition at line 24 of file Polynomial.cpp.
Polynomial::Polynomial | ( | size_t | varCount | ) |
Definition at line 28 of file Polynomial.cpp.
void Polynomial::add | ( | const mpz_class & | coef, |
const Term & | term | ||
) |
Definition at line 55 of file Polynomial.cpp.
void Polynomial::clear | ( | ) |
Definition at line 106 of file Polynomial.cpp.
void Polynomial::clearAndSetVarCount | ( | size_t | varCount | ) |
Definition at line 50 of file Polynomial.cpp.
const mpz_class & Polynomial::getCoef | ( | size_t | index | ) | const |
Definition at line 40 of file Polynomial.cpp.
const Term & Polynomial::getTerm | ( | size_t | index | ) | const |
Definition at line 45 of file Polynomial.cpp.
size_t Polynomial::getTermCount | ( | ) | const |
Definition at line 36 of file Polynomial.cpp.
size_t Polynomial::getVarCount | ( | ) | const |
Definition at line 32 of file Polynomial.cpp.
void Polynomial::print | ( | FILE * | out | ) |
Definition at line 110 of file Polynomial.cpp.
void Polynomial::print | ( | ostream & | out | ) |
Definition at line 116 of file Polynomial.cpp.
void Polynomial::sortTermsReverseLex | ( | bool | collect = true | ) |
Definition at line 71 of file Polynomial.cpp.
|
private |
Definition at line 57 of file Polynomial.h.
|
private |
Definition at line 58 of file Polynomial.h.