|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.jas.gb.OrderedPairlist<C>
public class OrderedPairlist<C extends RingElem<C>>
Pair list management. The original Buchberger algorithm with criterions following Winkler in SAC-1, Kredel in ALDES/SAC-2, Kredel in MAS. Implemented using GenPolynomial, TreeMap and BitSet.
| Field Summary | |
|---|---|
protected int |
moduleVars
|
protected boolean |
oneInGB
|
protected java.util.List<GenPolynomial<C>> |
P
|
protected java.util.SortedMap<ExpVector,java.util.LinkedList<Pair<C>>> |
pairlist
|
protected int |
putCount
|
protected java.util.List<java.util.BitSet> |
red
|
protected Reduction<C> |
reduction
|
protected int |
remCount
|
protected GenPolynomialRing<C> |
ring
|
protected boolean |
useCriterion4
|
| Constructor Summary | |
|---|---|
OrderedPairlist()
Constructor. |
|
OrderedPairlist(GenPolynomialRing<C> r)
Constructor. |
|
OrderedPairlist(int m,
GenPolynomialRing<C> r)
Constructor. |
|
| Method Summary | |
|---|---|
PairList<C> |
create(GenPolynomialRing<C> r)
Create a new PairList. |
PairList<C> |
create(int m,
GenPolynomialRing<C> r)
Create a new PairList. |
boolean |
criterion3(int i,
int j,
ExpVector eij)
GB criterium 3. |
java.util.List<GenPolynomial<C>> |
getList()
Get the list of polynomials. |
boolean |
hasNext()
Test if there is possibly a pair in the list. |
int |
put(GenPolynomial<C> p)
Put one 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 |
putOne(GenPolynomial<C> one)
Put the ONE-Polynomial to the pairlist. |
int |
remCount()
Get the number of required pairs removed from the pairlist. |
Pair<C> |
removeNext()
Remove the next required pair from the pairlist and reduction matrix. |
java.lang.String |
toString()
toString. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final java.util.List<GenPolynomial<C extends RingElem<C>>> P
protected final java.util.SortedMap<ExpVector,java.util.LinkedList<Pair<C extends RingElem<C>>>> pairlist
protected final java.util.List<java.util.BitSet> red
protected final GenPolynomialRing<C extends RingElem<C>> ring
protected final Reduction<C extends RingElem<C>> reduction
protected boolean oneInGB
protected boolean useCriterion4
protected int putCount
protected int remCount
protected final int moduleVars
| Constructor Detail |
|---|
public OrderedPairlist()
public OrderedPairlist(GenPolynomialRing<C> r)
r - polynomial factory.
public OrderedPairlist(int m,
GenPolynomialRing<C> r)
m - number of module variables.r - polynomial factory.| Method Detail |
|---|
public PairList<C> create(GenPolynomialRing<C> r)
create in interface PairList<C extends RingElem<C>>r - polynomial ring.
public PairList<C> create(int m,
GenPolynomialRing<C> r)
create in interface PairList<C extends RingElem<C>>m - number of module variables.r - polynomial ring.public java.lang.String toString()
toString in interface PairList<C extends RingElem<C>>toString in class java.lang.Objectpublic int put(GenPolynomial<C> p)
put in interface PairList<C extends RingElem<C>>p - polynomial.
public Pair<C> removeNext()
removeNext in interface PairList<C extends RingElem<C>>public boolean hasNext()
hasNext in interface PairList<C extends RingElem<C>>public java.util.List<GenPolynomial<C>> getList()
getList in interface PairList<C extends RingElem<C>>public int putCount()
putCount in interface PairList<C extends RingElem<C>>public int remCount()
remCount in interface PairList<C extends RingElem<C>>public int putOne(GenPolynomial<C> one)
one - polynomial. (no more required)
public int putOne()
putOne in interface PairList<C extends RingElem<C>>
public boolean criterion3(int i,
int j,
ExpVector eij)
criterion3 in interface PairList<C extends RingElem<C>>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||