Package edu.jas.arith

Class ModInt

    • Field Detail

      • val

        public final int val
        Value part of the element data structure.
    • Constructor Detail

      • ModInt

        public ModInt​(ModIntRing m,
                      java.math.BigInteger a)
        The constructor creates a ModInt object from a ModIntRing and a value part.
        Parameters:
        m - ModIntRing.
        a - math.BigInteger.
      • ModInt

        public ModInt​(ModIntRing m,
                      int a)
        The constructor creates a ModInt object from a ModIntRing and a int value part.
        Parameters:
        m - ModIntRing.
        a - int.
      • ModInt

        public ModInt​(ModIntRing m,
                      long a)
        The constructor creates a ModInt object from a ModIntRing and a long value part.
        Parameters:
        m - ModIntRing.
        a - long.
      • ModInt

        public ModInt​(ModIntRing m,
                      java.lang.Integer a)
        The constructor creates a ModInt object from a ModIntRing and a Int value part.
        Parameters:
        m - ModIntRing.
        a - Int.
      • ModInt

        public ModInt​(ModIntRing m,
                      java.lang.Long a)
        The constructor creates a ModInt object from a ModIntRing and a Long value part.
        Parameters:
        m - ModIntRing.
        a - long.
      • ModInt

        public ModInt​(ModIntRing m,
                      java.lang.String s)
        The constructor creates a ModInt object from a ModIntRing and a String value part.
        Parameters:
        m - ModIntRing.
        s - String.
      • ModInt

        public ModInt​(ModIntRing m)
        The constructor creates a 0 ModInt object from a given ModIntRing.
        Parameters:
        m - ModIntRing.