|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.jas.ring.CriticalPairList<C>
public class CriticalPairList<C extends RingElem<C>>
Critical pair list management. Makes some effort to produce the same sequence of critical pairs as in the sequential case, when used in parallel. However already reduced pairs are not rereduced if new polynomials appear. Implemented using GenPolynomial, TreeSet and BitSet.
Constructor Summary | |
---|---|
CriticalPairList(GenPolynomialRing<C> r)
Constructor for CriticalPairList. |
|
CriticalPairList(int m,
GenPolynomialRing<C> r)
Constructor for CriticalPairList. |
Method Summary | |
---|---|
boolean |
criterion3(int i,
int j,
ExpVector eij)
GB criterium 3. |
java.util.ArrayList<GenPolynomial<C>> |
getList()
Get the list of polynomials. |
CriticalPair<C> |
getNext()
Get the next required pair from the pairlist. |
boolean |
hasNext()
Test if there is possibly a pair in the list. |
java.util.List<CriticalPair<C>> |
inWork()
In work pairs. |
int |
put(GenPolynomial<C> p)
Put a polynomial to the pairlist and reduction matrix. |
int |
putCount()
Get the number of polynomials put to the pairlist. |
int |
putOne()
Put the ONE-Polynomial to the pairlist. |
int |
record(CriticalPair<C> pair,
GenPolynomial<C> p)
Record reduced polynomial. |
int |
remCount()
Get the number of required pairs removed from the pairlist. |
int |
update()
Update pairlist. |
int |
update(CriticalPair<C> pair,
GenPolynomial<C> p)
Record reduced polynomial and update critical pair list. |
int |
updateMany()
Update pairlist, several pairs at once. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CriticalPairList(GenPolynomialRing<C> r)
r
- polynomial factory.public CriticalPairList(int m, GenPolynomialRing<C> r)
m
- number of module variables.r
- polynomial factory.Method Detail |
---|
public int put(GenPolynomial<C> p)
p
- polynomial.
public int putOne()
public CriticalPair<C> getNext()
public int record(CriticalPair<C> pair, GenPolynomial<C> p)
pair
- the corresponding critical pair.p
- polynomial.
public int update(CriticalPair<C> pair, GenPolynomial<C> p)
pair
- the corresponding critical pair.p
- polynomial.
public int update()
public java.util.List<CriticalPair<C>> inWork()
public int updateMany()
public boolean hasNext()
public java.util.ArrayList<GenPolynomial<C>> getList()
public int putCount()
public int remCount()
public boolean criterion3(int i, int j, ExpVector eij)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |