Package edu.jas.poly

Class Residue<C extends RingElem<C>>

    • Field Detail

      • logger

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

        private static final boolean debug
      • val

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

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

      • Residue

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

        public Residue​(ResidueRing<C> r,
                       C a)
        The constructor creates a Residue object from a ring factory and a ring element.
        Parameters:
        r - ring factory.
        a - ring element.
      • Residue

        public Residue​(ResidueRing<C> r,
                       C a,
                       int u)
        The constructor creates a Residue object from a ring factory, a ring element and an indicator if a is a unit.
        Parameters:
        r - ring factory.
        a - ring element.
        u - isunit indicator, -1, 0, 1.