Package edu.jas.poly

Class Quotient<C extends RingElem<C>>

    • Field Detail

      • logger

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

        private static final boolean debug
      • num

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

        public final C extends RingElem<C> den
        Denominator part of the element data structure.
    • Constructor Detail

      • Quotient

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

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

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

        protected Quotient​(QuotientRing<C> r,
                           C n,
                           C d,
                           boolean isred)
        The constructor creates a Quotient 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.