You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
460 B
17 lines
460 B
5 months ago
|
"""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)
|