edu.jas.poly
Class ExpVector

java.lang.Object
  extended by edu.jas.poly.ExpVector
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class ExpVector
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

ExpVector implements exponent vectors for polynomials.

See Also:
Serialized Form

Constructor Summary
ExpVector()
           
ExpVector(int n)
          Constructors for ExpVector
ExpVector(int n, int i, long e)
           
ExpVector(long[] v)
           
ExpVector(java.lang.String s)
           
ExpVector(java.lang.String[] v)
           
 
Method Summary
 java.lang.Object clone()
           
 ExpVector contract(int i, int len)
           
 int[] dependencyOnVariables()
           
 ExpVector dif(ExpVector V)
           
 boolean equals(java.lang.Object B)
           
static int EVCOMP(int evord, ExpVector U, ExpVector V)
          Compare.
static int EVCOMP(int evord, ExpVector U, ExpVector V, int begin, int end)
          Compare part.
static ExpVector EVDIF(ExpVector U, ExpVector V)
          Difference.
static int[] EVDOV(ExpVector U)
          Dependency on variables.
static int EVIGLC(ExpVector U, ExpVector V)
          Inverse graded lexicographical compare.
static int EVIGLC(ExpVector U, ExpVector V, int begin, int end)
          Inverse graded lexicographical compare part.
static int EVILCP(ExpVector U, ExpVector V)
          Inverse lexicographical compare.
static int EVILCP(ExpVector U, ExpVector V, int begin, int end)
          Inverse lexicographical compare part.
static int EVIWLC(long[] w, ExpVector U, ExpVector V)
          Inverse weighted lexicographical compare.
static int EVIWLC(long[] w, ExpVector U, ExpVector V, int begin, int end)
          Inverse weighted lexicographical compare part.
static ExpVector EVLCM(ExpVector U, ExpVector V)
          Least common multiple.
static boolean EVMT(ExpVector U, ExpVector V)
          Multiple test.
static ExpVector EVRAND(int r, int k)
           
static ExpVector EVRAND(int r, int k, float q)
          Random.
static int EVSIGN(ExpVector U)
          Sign.
static ExpVector EVSU(ExpVector U, int i, long d)
          Substitute.
static ExpVector EVSUM(ExpVector U, ExpVector V)
          Sum.
static long EVTDEG(ExpVector U)
          Total degree.
static long EVWDEG(long[] w, ExpVector U)
          Weighted degree.
 ExpVector extend(int i, int j, long e)
           
 long[] getval()
           
 long getVal(int i)
           
 int hashCode()
           
 boolean isZERO()
           
 int length()
           
 long setVal(int i, long e)
           
 java.lang.String[] stdVars()
          Standard vars.
static java.lang.String[] STDVARS(int n)
           
 ExpVector subst(int i, long d)
           
 ExpVector sum(ExpVector V)
           
 java.lang.String toString()
           
 java.lang.String toString(java.lang.String[] vars)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExpVector

public ExpVector(int n)
Constructors for ExpVector


ExpVector

public ExpVector(int n,
                 int i,
                 long e)

ExpVector

public ExpVector()

ExpVector

public ExpVector(long[] v)

ExpVector

public ExpVector(java.lang.String[] v)

ExpVector

public ExpVector(java.lang.String s)
          throws java.lang.NumberFormatException
Throws:
java.lang.NumberFormatException
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getval

public long[] getval()

getVal

public long getVal(int i)

setVal

public long setVal(int i,
                   long e)

length

public int length()

extend

public ExpVector extend(int i,
                        int j,
                        long e)

contract

public ExpVector contract(int i,
                          int len)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(java.lang.String[] vars)

equals

public boolean equals(java.lang.Object B)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

isZERO

public boolean isZERO()

stdVars

public java.lang.String[] stdVars()
Standard vars.


STDVARS

public static java.lang.String[] STDVARS(int n)

EVSUM

public static ExpVector EVSUM(ExpVector U,
                              ExpVector V)
Sum.


sum

public ExpVector sum(ExpVector V)

EVDIF

public static ExpVector EVDIF(ExpVector U,
                              ExpVector V)
Difference.


dif

public ExpVector dif(ExpVector V)

EVSU

public static ExpVector EVSU(ExpVector U,
                             int i,
                             long d)
Substitute.


subst

public ExpVector subst(int i,
                       long d)

EVRAND

public static ExpVector EVRAND(int r,
                               int k,
                               float q)
Random.


EVRAND

public static ExpVector EVRAND(int r,
                               int k)

EVSIGN

public static int EVSIGN(ExpVector U)
Sign.


EVTDEG

public static long EVTDEG(ExpVector U)
Total degree.


EVWDEG

public static long EVWDEG(long[] w,
                          ExpVector U)
Weighted degree.


EVLCM

public static ExpVector EVLCM(ExpVector U,
                              ExpVector V)
Least common multiple.


EVDOV

public static int[] EVDOV(ExpVector U)
Dependency on variables.


dependencyOnVariables

public int[] dependencyOnVariables()

EVMT

public static boolean EVMT(ExpVector U,
                           ExpVector V)
Multiple test.

Returns:
true if U is a multiple of V, else false.

EVILCP

public static int EVILCP(ExpVector U,
                         ExpVector V)
Inverse lexicographical compare.


EVILCP

public static int EVILCP(ExpVector U,
                         ExpVector V,
                         int begin,
                         int end)
Inverse lexicographical compare part.


EVIGLC

public static int EVIGLC(ExpVector U,
                         ExpVector V)
Inverse graded lexicographical compare.


EVIWLC

public static int EVIWLC(long[] w,
                         ExpVector U,
                         ExpVector V)
Inverse weighted lexicographical compare.


EVIGLC

public static int EVIGLC(ExpVector U,
                         ExpVector V,
                         int begin,
                         int end)
Inverse graded lexicographical compare part.


EVIWLC

public static int EVIWLC(long[] w,
                         ExpVector U,
                         ExpVector V,
                         int begin,
                         int end)
Inverse weighted lexicographical compare part.


EVCOMP

public static int EVCOMP(int evord,
                         ExpVector U,
                         ExpVector V)
Compare.


EVCOMP

public static int EVCOMP(int evord,
                         ExpVector U,
                         ExpVector V,
                         int begin,
                         int end)
Compare part.