File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
src/sage/rings/finite_rings Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -32,15 +32,12 @@ from sage.rings.integer cimport Integer
32
32
from sage.rings.polynomial.polynomial_element import Polynomial
33
33
from sage.rings.polynomial.multi_polynomial_element import MPolynomial
34
34
from sage.rings.rational import Rational
35
+ from sage.structure.element cimport Vector
35
36
from sage.structure.richcmp cimport rich_to_bool
36
37
37
- try :
38
- from sage.modules.free_module_element import FreeModuleElement
39
- except ImportError :
40
- FreeModuleElement = ()
41
-
42
38
from sage.interfaces.abc import GapElement
43
39
40
+
44
41
cdef GEN _INT_to_FFELT(GEN g, GEN x) except NULL :
45
42
"""
46
43
Convert the t_INT `x` to an element of the field of definition of
@@ -457,7 +454,7 @@ cdef class FiniteFieldElement_pari_ffelt(FinitePolyExtElement):
457
454
sig_off()
458
455
raise TypeError (f" unable to convert PARI {x.type()} to finite field element" )
459
456
460
- elif (isinstance (x, FreeModuleElement )
457
+ elif (isinstance (x, Vector )
461
458
and x.parent() is self ._parent.vector_space(map = False )):
462
459
g = (< pari_gen> self ._parent._gen_pari).g
463
460
t = g[1 ] # codeword: t_FF_FpXQ, t_FF_Flxq, t_FF_F2xq
You can’t perform that action at this time.
0 commit comments