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
444 B
17 lines
444 B
"""Implementation of :class:`GMPYFiniteField` class. """
|
|
|
|
|
|
from sympy.polys.domains.finitefield import FiniteField
|
|
from sympy.polys.domains.gmpyintegerring import GMPYIntegerRing
|
|
|
|
from sympy.utilities import public
|
|
|
|
@public
|
|
class GMPYFiniteField(FiniteField):
|
|
"""Finite field based on GMPY integers. """
|
|
|
|
alias = 'FF_gmpy'
|
|
|
|
def __init__(self, mod, symmetric=True):
|
|
return super().__init__(mod, GMPYIntegerRing(), symmetric)
|