gmpyfinitefield.py 444 B

12345678910111213141516
  1. """Implementation of :class:`GMPYFiniteField` class. """
  2. from sympy.polys.domains.finitefield import FiniteField
  3. from sympy.polys.domains.gmpyintegerring import GMPYIntegerRing
  4. from sympy.utilities import public
  5. @public
  6. class GMPYFiniteField(FiniteField):
  7. """Finite field based on GMPY integers. """
  8. alias = 'FF_gmpy'
  9. def __init__(self, mod, symmetric=True):
  10. return super().__init__(mod, GMPYIntegerRing(), symmetric)