|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.jas.poly.TermOrder
public final class TermOrder
Term order class for ordered polynomials. Implements the most used term orders: graded, lexicographical, weight aray and block orders. For the definitions see for example the articles Kredel, "Admissible term orderings used in computer algebra systems" and Sit, "Some comments on term-ordering in Gröbner basis computations". Note: the naming is not quite easy to understand: in case of doubt use the term orders with "I" in the name, like IGRLEX (the default) or INVLEX. Not all algorithms may work with all term orders, so watch your step. This class does not jet implement orders by linear forms over Q[t]. Objects of this class are immutable.
Field Summary | |
---|---|
static int |
DEFAULT_EVORD
|
static int |
GRLEX
|
static int |
IGRLEX
|
static int |
INVLEX
|
static int |
LEX
|
static int |
REVILEX
|
static int |
REVITDG
|
static int |
REVLEX
|
static int |
REVTDEG
|
Constructor Summary | |
---|---|
TermOrder()
Constructor for default term order. |
|
TermOrder(int evord)
Constructor for given term order. |
|
TermOrder(int r,
int split)
Constructor for default split order. |
|
TermOrder(int ev1,
int ev2,
int r,
int split)
Constructor for given split order. |
|
TermOrder(long[] w)
Constructor for given exponent weights. |
|
TermOrder(long[][] w)
Constructor for given exponent weights. |
Method Summary | |
---|---|
TermOrder |
contract(int k,
int len)
Contract variables. |
boolean |
equals(java.lang.Object B)
Comparison with any other object. |
TermOrder |
extend(int r,
int k)
Extend variables. |
TermOrder |
extendLower(int r,
int k)
Extend lower variables. |
java.util.Comparator<ExpVector> |
getAscendComparator()
Get the ascending order comparator. |
java.util.Comparator<ExpVector> |
getDescendComparator()
Get the descending order comparator. |
int |
getEvord()
Get the first defined order indicator. |
int |
getEvord2()
Get the second defined order indicator. |
int |
getSplit()
Get the split index. |
java.util.Comparator<ExpVector> |
getSugarComparator()
Get the sugar order comparator. |
long[][] |
getWeight()
Get the weight array. |
int |
hashCode()
Hash code. |
TermOrder |
reverse()
Reverse variables. |
TermOrder |
reverse(boolean partial)
Reverse variables. |
static int |
revert(int evord)
Revert exponent order. |
java.lang.String |
toString()
String representation of TermOrder. |
java.lang.String |
weightToString()
String representation of weight vector. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int LEX
public static final int INVLEX
public static final int GRLEX
public static final int IGRLEX
public static final int REVLEX
public static final int REVILEX
public static final int REVTDEG
public static final int REVITDG
public static final int DEFAULT_EVORD
Constructor Detail |
---|
public TermOrder()
public TermOrder(int evord)
evord
- requested term order indicator / enumerator.public TermOrder(long[] w)
w
- weight vector of longs.public TermOrder(long[][] w)
w
- weight array of longs.public TermOrder(int r, int split)
r
- max number of exponents to compare.split
- index.public TermOrder(int ev1, int ev2, int r, int split)
ev1
- requested term order indicator for first block.ev2
- requested term order indicator for second block.r
- max number of exponents to compare.split
- index.Method Detail |
---|
public int getEvord()
public int getEvord2()
public int getSplit()
public long[][] getWeight()
public java.util.Comparator<ExpVector> getDescendComparator()
public java.util.Comparator<ExpVector> getAscendComparator()
public java.util.Comparator<ExpVector> getSugarComparator()
public boolean equals(java.lang.Object B)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public java.lang.String weightToString()
Object.toString()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public TermOrder extend(int r, int k)
r
- current number of variables.k
- number of variables to extend.
public TermOrder extendLower(int r, int k)
r
- current number of variables.k
- number of variables to extend.
public TermOrder contract(int k, int len)
k
- position of first element to be copied.len
- new length.
public TermOrder reverse()
public TermOrder reverse(boolean partial)
partial
- true for partialy reversed term orders.
public static int revert(int evord)
evord
- exponent order to be reverted.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |