public final class ExprTermOrder
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ExprTermOrder.EVComparator
Comparator for ExpVectors.
|
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_EVORD |
static int |
GRLEX |
static int |
IGRLEX |
static int |
INVLEX |
static int |
ITDEGLEX |
static int |
LEX |
static int |
MAX_EVORD |
static int |
MIN_EVORD |
static int |
REVILEX |
static int |
REVITDEG |
static int |
REVITDG |
static int |
REVLEX |
static int |
REVTDEG |
Constructor and Description |
---|
ExprTermOrder()
Constructor for default term order.
|
ExprTermOrder(int evord)
Constructor for given term order.
|
ExprTermOrder(int ev1,
int ev2,
int r,
int split)
Constructor for given split order.
|
ExprTermOrder(long[] w)
Constructor for given exponent weights.
|
ExprTermOrder(long[][] w)
Constructor for given exponent weights.
|
Modifier and Type | Method and Description |
---|---|
ExprTermOrder |
blockOrder(int s)
Create block term order at split index.
|
ExprTermOrder |
blockOrder(int s,
ExprTermOrder t)
Create block term order at split index.
|
ExprTermOrder |
blockOrder(int s,
ExprTermOrder t,
int len)
Create block term order at split index.
|
ExprTermOrder |
blockOrder(int s,
int len)
Create block term order at split index.
|
ExprTermOrder |
contract(int k,
int len)
Contract variables.
|
boolean |
equals(java.lang.Object B)
Comparison with any other object.
|
ExprTermOrder |
extend(int r,
int k)
Extend variables.
|
ExprTermOrder |
extendLower(int r,
int k)
Extend lower variables.
|
ExprTermOrder.EVComparator |
getAscendComparator()
Get the ascending order comparator.
|
ExprTermOrder.EVComparator |
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.
|
ExprTermOrder.EVComparator |
getSugarComparator()
Get the sugar order comparator.
|
long[][] |
getWeight()
Get the weight array.
|
int |
hashCode()
Hash code.
|
static long[] |
longArrayPermutation(java.util.List<java.lang.Integer> P,
long[] a)
Permutation of a long array.
|
ExprTermOrder |
permutation(java.util.List<java.lang.Integer> P)
Permutation of the termorder.
|
ExprTermOrder |
reverse()
Reverse variables.
|
ExprTermOrder |
reverse(boolean partial)
Reverse variables.
|
static ExprTermOrder |
reverseWeight(long[][] w)
Weight ExprTermOrder with reversed weight vectors.
|
static int |
revert(int evord)
Revert exponent order.
|
java.lang.String |
toScript()
String representation of ExprTermOrder.
|
java.lang.String |
toScriptOrder(int ev)
Script and String representation of ExprTermOrder name.
|
java.lang.String |
toScriptPlain()
Script representation of ExprTermOrder without prefix and weight matrix.
|
java.lang.String |
toString()
String representation of ExprTermOrder.
|
java.lang.String |
toStringPlain()
String representation of ExprTermOrder without prefix and weight matrix.
|
java.lang.String |
weightToScript()
Script representation of weight matrix.
|
java.lang.String |
weightToString()
String representation of weight matrix.
|
public static final int LEX
public static final int MIN_EVORD
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 ITDEGLEX
public static final int REVITDEG
public static final int MAX_EVORD
public static final int DEFAULT_EVORD
public ExprTermOrder()
public ExprTermOrder(int evord)
evord
- requested term order indicator / enumerator.public ExprTermOrder(long[] w)
w
- weight vector of longs.public ExprTermOrder(long[][] w)
w
- weight array of longs.public ExprTermOrder(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.public ExprTermOrder blockOrder(int s)
s
- split index.public ExprTermOrder blockOrder(int s, int len)
s
- split index.len
- length of ExpVectors to comparepublic ExprTermOrder blockOrder(int s, ExprTermOrder t)
s
- split index.t
- second term order.public ExprTermOrder blockOrder(int s, ExprTermOrder t, int len)
s
- split index.t
- second term order.len
- length of ExpVectors to comparepublic int getEvord()
public int getEvord2()
public int getSplit()
public long[][] getWeight()
public ExprTermOrder.EVComparator getDescendComparator()
public ExprTermOrder.EVComparator getAscendComparator()
public ExprTermOrder.EVComparator 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()
public java.lang.String weightToScript()
public java.lang.String toScript()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.String toStringPlain()
public java.lang.String toScriptPlain()
public java.lang.String toScriptOrder(int ev)
public ExprTermOrder extend(int r, int k)
r
- current number of variables.k
- number of variables to extend.public ExprTermOrder extendLower(int r, int k)
r
- current number of variables.k
- number of variables to extend.public ExprTermOrder contract(int k, int len)
k
- position of first element to be copied.len
- new length.public ExprTermOrder reverse()
public ExprTermOrder reverse(boolean partial)
partial
- true for partialy reversed term orders.public static int revert(int evord)
evord
- exponent order to be reverted.public static long[] longArrayPermutation(java.util.List<java.lang.Integer> P, long[] a)
a
- array of long.P
- permutation.public ExprTermOrder permutation(java.util.List<java.lang.Integer> P)
P
- permutation.public static ExprTermOrder reverseWeight(long[][] w)
w
- weight matrix