Represent a term.
More...
#include <term.h>
template<typename Element>
class F4::Term< Element >
Represent a term.
Definition at line 50 of file term.h.
template<typename Element>
Constructor.
- Parameters
-
coeff | Coefficient of the term. |
mon | Monomial of the term. |
template<typename Element>
Constructor.
- Parameters
-
coeff | Coefficient of the term. |
numMon | Number of the monomial of the term. |
template<typename Element>
Constructor.
- Parameters
-
s | String representing the term. |
template<typename Element>
Copy constructor.
- Parameters
-
template<typename Element>
int F4::Term< Element >::compareTerm |
( |
Term< Element > const & |
term | ) |
const |
Compare terms according to the grevlex order. Coefficient are not taking into accout.
- Parameters
-
- Returns
- 0 if this==term.
-
1 if this>term.
-
-1 if this<term.
template<typename Element>
Element F4::Term< Element >::getCoefficient |
( |
| ) |
const |
Get the coefficient of this.
- Returns
- Coefficient of this.
template<typename Element>
int F4::Term< Element >::getNumMonomial |
( |
| ) |
const |
Get the number of the monomial of this.
- Returns
- numMonomial of this.
template<typename Element>
void F4::Term< Element >::multNumMon |
( |
int |
numMon | ) |
|
Multiply this with a monomial under integer form.
- Parameters
-
numMon | number of a monomial. |
template<typename Element>
Overload the operator *= to multiply this with a monomial.
- Parameters
-
- Returns
- Reference on this.
template<typename Element>
Overload the operator *= to multiply this with an Element.
- Parameters
-
- Returns
- Reference on this.
template<typename Element>
Overload the operator *= to multiply this with a term.
- Parameters
-
- Returns
- Reference on this.
template<typename Element>
Overload the operator =.
- Parameters
-
- Returns
- Reference on this.
template<typename Element>
void F4::Term< Element >::readCoefficient |
( |
std::string const |
s | ) |
|
Get the coefficient of the term written s. Must be specialized for each type of Element.
- Parameters
-
s | String representing the term. |
- Returns
- Coefficent the term.
template<typename Element>
void F4::Term< Element >::setCoefficient |
( |
Element |
coeff | ) |
|
Set the coefficient of this.
- Parameters
-
template<typename Element>
void F4::Term< Element >::setCoefficientOne |
( |
| ) |
|
Set the coefficient of this to 1.
- Parameters
-
template<typename Element>
Set the monomial array to use.
- Parameters
-
monomialArray | Address of the array. |
template<typename Element>
void F4::Term< Element >::setNumMonomial |
( |
int |
numMon | ) |
|
Set the number of the monomial of this.
- Parameters
-
numMon | Number of the monomial of this. |
template<typename Element>
void F4::Term< Element >::setTerm |
( |
std::string const |
s | ) |
|
Initialize this with s.
- Parameters
-
s | String representing the term. |
template<typename Element>
Element F4::Term< Element >::_coefficient |
|
private |
Coefficient of the term.
Definition at line 197 of file term.h.
template<typename Element>
Number of the monomial of the term.
Definition at line 198 of file term.h.
template<typename Element>
Pointer on a monomial array
Definition at line 200 of file term.h.
The documentation for this class was generated from the following file:
- /home/titouan/Bureau/openf4-1.0.1/openf4/include/term.h