File size: 460 Bytes
18481c2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
"""Implementation of :class:`PythonFiniteField` class. """
from sympy.polys.domains.finitefield import FiniteField
from sympy.polys.domains.pythonintegerring import PythonIntegerRing
from sympy.utilities import public
@public
class PythonFiniteField(FiniteField):
"""Finite field based on Python's integers. """
alias = 'FF_python'
def __init__(self, mod, symmetric=True):
return super().__init__(mod, PythonIntegerRing(), symmetric)
|