Package edu.jas.poly

Class Local<C extends RingElem<C>>

    • Field Detail

      • 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 Detail

      • 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.