Skip to content

Commit d799994

Browse files
committed
rename __fld_denominator -> _fld_denominator
1 parent 8386b4e commit d799994

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/sage/rings/number_field/number_field_element.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ cdef class NumberFieldElement(NumberFieldElement_base):
1616
# Pointers to the defining polynomial (with numerator) for the field.
1717
# I keep these as pointers for arithmetic speed.
1818
cdef ntl_ZZX __fld_numerator
19-
cdef ntl_ZZ __fld_denominator
19+
cdef ntl_ZZ _fld_denominator
2020
cdef object __multiplicative_order
2121
cdef object __pari
2222
cdef object __matrix

src/sage/rings/number_field/number_field_element.pyx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ cdef class NumberFieldElement(NumberFieldElement_base):
219219
cdef NumberFieldElement x = <NumberFieldElement>t.__new__(t)
220220
x._parent = self._parent
221221
x.__fld_numerator = self.__fld_numerator
222-
x.__fld_denominator = self.__fld_denominator
222+
x._fld_denominator = self._fld_denominator
223223
return x
224224

225225
cdef number_field(self):
@@ -317,7 +317,7 @@ cdef class NumberFieldElement(NumberFieldElement_base):
317317
True
318318
"""
319319
FieldElement.__init__(self, parent)
320-
self.__fld_numerator, self.__fld_denominator = parent.absolute_polynomial_ntl()
320+
self.__fld_numerator, self._fld_denominator = parent.absolute_polynomial_ntl()
321321

322322
cdef ZZ_c coeff
323323
if isinstance(f, (int, Integer_sage)):
@@ -417,7 +417,7 @@ cdef class NumberFieldElement(NumberFieldElement_base):
417417
cdef type t = type(self)
418418
cdef NumberFieldElement x = <NumberFieldElement>t.__new__(t)
419419
x._parent = <ParentWithBase>new_parent
420-
x.__fld_numerator, x.__fld_denominator = new_parent.polynomial_ntl()
420+
x.__fld_numerator, x._fld_denominator = new_parent.polynomial_ntl()
421421
x._denominator = self._denominator
422422
cdef ZZX_c result
423423
cdef ZZ_c tmp
@@ -2577,11 +2577,11 @@ cdef class NumberFieldElement(NumberFieldElement_base):
25772577
else:
25782578
ZZX_mul(x._numerator, self._numerator, _right._numerator)
25792579
if ZZX_deg(x._numerator) >= ZZX_deg(self.__fld_numerator.x):
2580-
ZZX_mul_ZZ( x._numerator, x._numerator, self.__fld_denominator.x )
2580+
ZZX_mul_ZZ( x._numerator, x._numerator, self._fld_denominator.x )
25812581
ZZX_mul_ZZ( temp, self.__fld_numerator.x, x._denominator )
25822582
ZZ_power(temp1,ZZX_LeadCoeff(temp),ZZX_deg(x._numerator)-ZZX_deg(self.__fld_numerator.x)+1)
25832583
ZZX_PseudoRem(x._numerator, x._numerator, temp)
2584-
ZZ_mul(x._denominator, x._denominator, self.__fld_denominator.x)
2584+
ZZ_mul(x._denominator, x._denominator, self._fld_denominator.x)
25852585
ZZ_mul(x._denominator, x._denominator, temp1)
25862586
sig_off()
25872587
x._reduce_c_()
@@ -5323,7 +5323,7 @@ cdef class OrderElement_absolute(NumberFieldElement_absolute):
53235323
x._parent = self._parent
53245324
x._number_field = self._parent.number_field()
53255325
x.__fld_numerator = self.__fld_numerator
5326-
x.__fld_denominator = self.__fld_denominator
5326+
x._fld_denominator = self._fld_denominator
53275327
return x
53285328

53295329
cdef number_field(self):
@@ -5444,7 +5444,7 @@ cdef class OrderElement_relative(NumberFieldElement_relative):
54445444
x._parent = self._parent
54455445
x._number_field = self._parent.number_field()
54465446
x.__fld_numerator = self.__fld_numerator
5447-
x.__fld_denominator = self.__fld_denominator
5447+
x._fld_denominator = self._fld_denominator
54485448
return x
54495449

54505450
def __invert__(self):

src/sage/rings/number_field/number_field_element_quadratic.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ cdef class NumberFieldElement_quadratic(NumberFieldElement_absolute):
610610
mpz_clear(tmp_mpz)
611611

612612
x._parent = <ParentWithBase>new_parent
613-
x.__fld_numerator, x.__fld_denominator = new_parent.polynomial_ntl()
613+
x.__fld_numerator, x._fld_denominator = new_parent.polynomial_ntl()
614614
x._denominator = elt_den
615615
cdef ZZX_c result
616616
cdef ZZ_c tmp

0 commit comments

Comments
 (0)