49 template <
typename Element>
82 Term(Element coeff,
int numMon);
88 Term(std::string
const s);
141 void setTerm(std::string
const s);
156 void printTerm (std::ostream & stream)
const;
218 template <
typename Element>
219 std::ostream & operator<<(std::ostream & stream, Term<Element>
const & term);
225 template <
typename Element>
232 template <
typename Element>
239 template <
typename Element>
249 template <
typename Element>
259 template <
typename Element>
260 bool operator<(Term<Element>
const & term1,
Term<Element> const & term2);
264 #include "../src/term.inl"
void printTerm(std::ostream &stream) const
Print the term.
ElementGF2Extension< baseType > operator*(ElementGF2Extension< baseType > const &element1, ElementGF2Extension< baseType > const &element2)
Overload the operator *.
void setTerm(std::string const s)
Initialize this with s.
Declaration of class ElementPrime.
int getNumMonomial() const
Get the number of the monomial of this.
void readCoefficient(std::string const s)
Get the coefficient of the term written s. Must be specialized for each type of Element.
int compareTerm(Term< Element > const &term) const
Compare terms according to the grevlex order. Coefficient are not taking into accout.
Wrapper for config.h in order to avoid multiple definitions.
Declaration of class ElementGF2.
Represent a array of monomials.
void multNumMon(int numMon)
Multiply this with a monomial under integer form.
bool operator>(CriticalPair< Element > const &criticalPair1, CriticalPair< Element > const &criticalPair2)
Overload the operator >.
Declaration of class ElementGivaro.
Term & operator*=(Monomial const &monomial)
Overload the operator *= to multiply this with a monomial.
static void setMonomialArray(MonomialArray *monomialArray)
Set the monomial array to use.
Declaration of class MonomialArray.
void setCoefficientOne()
Set the coefficient of this to 1.
void setNumMonomial(int numMon)
Set the number of the monomial of this.
static MonomialArray * MONOMIAL_ARRAY
Element getCoefficient() const
Get the coefficient of this.
void setCoefficient(Element coeff)
Set the coefficient of this.
Declaration of class ElementGF2Extension.
Term & operator=(Term const &term)
Overload the operator =.