Package maths
Class CharSet
- java.lang.Object
-
- maths.CharSet
-
public class CharSet extends java.lang.ObjectRepresents a character set for polynomial operations.
-
-
Constructor Summary
Constructors Constructor Description CharSet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancfinished(TPoly pp)Checks if the given polynomial is finished.TPolycharset(TPoly pp)Processes the given polynomial and returns the resulting polynomial.static booleandebug()Returns the debug status.static CharSetgetinstance()Returns the singleton instance of CharSet.voidprintpoly(TPoly pp)Prints the given polynomial.voidreduce(TPoly poly)Reduces the given polynomial in place.TPolyreduce1(TPoly poly)Reduces the given polynomial.static TPolyreverse(TPoly pp)Reverses the given polynomial.
-
-
-
Method Detail
-
debug
public static boolean debug()
Returns the debug status.- Returns:
- true if debug is enabled; false otherwise
-
getinstance
public static CharSet getinstance()
Returns the singleton instance of CharSet.- Returns:
- the singleton instance
-
charset
public TPoly charset(TPoly pp)
Processes the given polynomial and returns the resulting polynomial.- Parameters:
pp- the input polynomial- Returns:
- the resulting polynomial
-
reduce1
public TPoly reduce1(TPoly poly)
Reduces the given polynomial.- Parameters:
poly- the input polynomial- Returns:
- the reduced polynomial
-
reduce
public void reduce(TPoly poly)
Reduces the given polynomial in place.- Parameters:
poly- the input polynomial
-
cfinished
public boolean cfinished(TPoly pp)
Checks if the given polynomial is finished.- Parameters:
pp- the input polynomial- Returns:
- true if the polynomial is finished; false otherwise
-
printpoly
public void printpoly(TPoly pp)
Prints the given polynomial.- Parameters:
pp- the input polynomial
-
-