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

Commit

Permalink
sage.rings.real_double.RealDoubleField_class: Inherit through a new c…
Browse files Browse the repository at this point in the history
…lass sage.rings.abc.RealDoubleField
  • Loading branch information
Matthias Koeppe committed Sep 26, 2021
1 parent cee081a commit 99f4f10
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/sage/rings/abc.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ from .ring cimport Field
cdef class RealField(Field):

pass


cdef class RealDoubleField(Field):

pass
3 changes: 2 additions & 1 deletion src/sage/rings/real_double.pxd
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from sage.structure.element cimport RingElement, ModuleElement, Element, FieldElement
from sage.rings.ring cimport Field
cimport sage.rings.abc

cdef class RealDoubleField_class(Field):
cdef class RealDoubleField_class(sage.rings.abc.RealDoubleField):
cdef _new_c(self, double value)

cdef class RealDoubleElement(FieldElement):
Expand Down
2 changes: 1 addition & 1 deletion src/sage/rings/real_double.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def is_RealDoubleField(x):
"""
return isinstance(x, RealDoubleField_class)

cdef class RealDoubleField_class(Field):
cdef class RealDoubleField_class(sage.rings.abc.RealDoubleField):
"""
An approximation to the field of real numbers using double
precision floating point numbers. Answers derived from calculations
Expand Down

0 comments on commit 99f4f10

Please sign in to comment.