pythonfinitefield.py 460 B

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