Package edu.jas.poly

Class Local<C extends RingElem<C>>

java.lang.Object
edu.jas.poly.Local<C>
All Implemented Interfaces:
AbelianGroupElem<Local<C>>, Element<Local<C>>, MonoidElem<Local<C>>, QuotPair<C>, RingElem<Local<C>>, Serializable, Comparable<Local<C>>

public class Local<C extends RingElem<C>> extends Object implements RingElem<Local<C>>, QuotPair<C>
Local element based on RingElem pairs. Objects of this class are (nearly) immutable.
See Also:
  • Field Details

    • logger

      private static final org.apache.logging.log4j.Logger logger
    • debug

      private static final boolean debug
    • ring

      protected final LocalRing<C extends RingElem<C>> ring
      Local class factory data structure.
    • num

      protected final C extends RingElem<C> num
      Numerator part of the element data structure.
    • den

      protected final C extends RingElem<C> den
      Denominator part of the element data structure.
    • isunit

      protected int isunit
      Flag to remember if this local element is a unit. -1 is unknown, 1 is unit, 0 not a unit.
  • Constructor Details

    • Local

      public Local(LocalRing<C> r)
      The constructor creates a Local object from a ring factory.
      Parameters:
      r - ring factory.
    • Local

      public Local(LocalRing<C> r, C n)
      The constructor creates a Local object from a ring factory and a numerator element. The denominator is assumed to be 1.
      Parameters:
      r - ring factory.
      n - numerator.
    • Local

      public Local(LocalRing<C> r, C n, C d)
      The constructor creates a Local object from a ring factory and a numerator and denominator element.
      Parameters:
      r - ring factory.
      n - numerator.
      d - denominator.
    • Local

      protected Local(LocalRing<C> r, C n, C d, boolean isred)
      The constructor creates a Local object from a ring factory and a numerator and denominator element.
      Parameters:
      r - ring factory.
      n - numerator.
      d - denominator.
      isred - true if gcd(n,d) == 1, else false.
  • Method Details