Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
ComplexField_class, ComplexDoubleField: Inherit through new classes s…
Browse files Browse the repository at this point in the history
…age.rings.abc.*
  • Loading branch information
Matthias Koeppe committed Sep 26, 2021
1 parent 99f4f10 commit 29871d0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
10 changes: 10 additions & 0 deletions src/sage/rings/abc.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,13 @@ cdef class RealField(Field):
cdef class RealDoubleField(Field):

pass


cdef class ComplexField(Field):

pass


cdef class ComplexDoubleField(Field):

pass
3 changes: 2 additions & 1 deletion src/sage/rings/complex_double.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ from sage.libs.gsl.types cimport gsl_complex

cimport sage.structure.element
cimport sage.rings.ring
cimport sage.rings.abc


cdef class ComplexDoubleField_class(sage.rings.ring.Field):
cdef class ComplexDoubleField_class(sage.rings.abc.ComplexDoubleField):
pass


Expand Down
2 changes: 1 addition & 1 deletion src/sage/rings/complex_double.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def is_ComplexDoubleField(x):
return isinstance(x, ComplexDoubleField_class)


cdef class ComplexDoubleField_class(sage.rings.ring.Field):
cdef class ComplexDoubleField_class(sage.rings.abc.ComplexDoubleField):
"""
An approximation to the field of complex numbers using double
precision floating point numbers. Answers derived from calculations
Expand Down
2 changes: 1 addition & 1 deletion src/sage/rings/complex_mpfr.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def ComplexField(prec=53, names=None):
return C


class ComplexField_class(ring.Field):
class ComplexField_class(sage.rings.abc.ComplexField):
"""
An approximation to the field of complex numbers using floating
point numbers with any specified precision. Answers derived from
Expand Down

0 comments on commit 29871d0

Please sign in to comment.