Source code for sympy.polys.domains.gmpyfinitefield

"""Implementation of :class:`GMPYFiniteField` class. """

from __future__ import print_function, division

from sympy.polys.domains.finitefield import FiniteField
from sympy.polys.domains.gmpyintegerring import GMPYIntegerRing

from sympy.utilities import public

@public
[docs]class GMPYFiniteField(FiniteField): """Finite field based on GMPY integers. """ alias = 'FF_gmpy' def __init__(self, mod, symmetric=True): return super(GMPYFiniteField, self).__init__(mod, GMPYIntegerRing(), symmetric)