49 template <
typename Element>
82 Term(Element coeff,
int numMon);
88 Term(std::string
const s);
133 void setTerm(std::string
const s);
148 void printTerm (std::ostream & stream)
const;
210 template <
typename Element>
211 std::ostream & operator<<(std::ostream & stream, Term<Element>
const & term);
217 template <
typename Element>
224 template <
typename Element>
231 template <
typename Element>
241 template <
typename Element>
251 template <
typename Element>
252 bool operator<(Term<Element>
const & term1,
Term<Element> const & term2);
256 #include "../src/term.inl"
259 #endif // OPENF4_TERM_H
void printTerm(std::ostream &stream) const
Print the term.
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.
Term< Element > operator*(Monomial const &mon, Term< Element > const &term)
Overload the operator *.
void multNumMon(int numMon)
Multiply this with a monomial under integer form.
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.
bool operator>(Term< Element > const &term1, Term< Element > const &term2)
Overload the operator >.
void setCoefficient(Element coeff)
Set the coefficient of this.
Declaration of class ElementGF2Extension.
Term & operator=(Term const &term)
Overload the operator =.