Represent a critical pair.
More...
#include <critical-pair.h>
template<typename Element>
class F4::CriticalPair< Element >
Represent a critical pair.
Definition at line 44 of file critical-pair.h.
template<typename Element>
Constructor.
- Precondition
- The static variable TAGGEG_POLYNOMIAL_ARRAY must be set beforhand.
- Parameters
-
p1 | Index of a tagged polynomial in TAGGEG_POLYNOMIAL_ARRAY. |
p2 | Index of a tagged polynomial in TAGGEG_POLYNOMIAL_ARRAY. |
template<typename Element>
Compare this with criticalPair.
- Parameters
-
- Returns
- 1 if LM(this) > LM(criticalPair) or if (lcm1 = lcm2) & this.(_p1,_p2) newer than criticalPair.(_p1,_p2)
-
0 if this == criticalPair.
-
-1 otherwise.
template<typename Element>
Get the degree of this.
- Returns
- Degree of the critical pair.
template<typename Element>
Get _lcm.
- Returns
- lcm of the critical pair.
template<typename Element>
Get the index of the first tagged polynomial.
- Returns
- Index of the first tagged polynomial.
template<typename Element>
Get the index of the second tagged polynomial.
- Returns
- Index of the second tagged polynomial.
template<typename Element>
Get a tagged polynomial from the array of tagged polynomial.
- Parameters
-
numTaggedPolynomial | Index of a tagged polynomial in the array pointed by TAGGEG_POLYNOMIAL_ARRAY. |
template<typename Element>
Get the number of the monomial u1.
- Returns
- Monomial u1.
template<typename Element>
Get the number of the monomial u2.
- Returns
- Monomial u2.
template<typename Element>
Overload the operator =.
- Parameters
-
criticalPair | Critical pair to copy. |
- Returns
- Reference on this.
template<typename Element>
Modify an already created critical pair.
- Precondition
- The static variable TAGGEG_POLYNOMIAL_ARRAY must be set beforhand.
- Parameters
-
p1 | Index of a tagged polynomial in TAGGEG_POLYNOMIAL_ARRAY. |
p2 | Index of a tagged polynomial in TAGGEG_POLYNOMIAL_ARRAY. |
- Returns
- true if the critical pair cannot be skipped with the 1st Buchberger criteria.
-
false if it can.
template<typename Element>
Set the monomial array to use.
- Parameters
-
monomialArray | Address of the array. |
template<typename Element>
Set the array of tagged polynomial to use.
- Parameters
-
taggedPolynomialArray | Address of the array. |
template<typename Element>
template<typename Element>
template<typename Element>
template<typename Element>
template<typename Element>
template<typename Element>
template<typename Element>
The documentation for this class was generated from the following file: