Package maths

Class CharSet


  • public class CharSet
    extends java.lang.Object
    Represents a character set for polynomial operations.
    • Constructor Summary

      Constructors 
      Constructor Description
      CharSet()  
    • Constructor Detail

      • CharSet

        public CharSet()
    • 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
      • reverse

        public static TPoly reverse​(TPoly pp)
        Reverses the given polynomial.
        Parameters:
        pp - the input polynomial
        Returns:
        the reversed polynomial