Skip to content

Commit 252f0bb

Browse files
committed
rename __crt -> _crt
1 parent 251d36b commit 252f0bb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/sage/rings/finite_rings/integer_mod.pyx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1708,14 +1708,14 @@ cdef class IntegerMod_abstract(FiniteRingElement):
17081708
if other._modulus.int64 == 1: return self
17091709
new_modulus = self._modulus.int64 * other._modulus.int64
17101710
if new_modulus < INTEGER_MOD_INT32_LIMIT:
1711-
return self.__crt(other)
1711+
return self._crt(other)
17121712

17131713
elif new_modulus < INTEGER_MOD_INT64_LIMIT:
17141714
if not isinstance(self, IntegerMod_int64):
17151715
self = IntegerMod_int64(self._parent, self.lift())
17161716
if not isinstance(other, IntegerMod_int64):
17171717
other = IntegerMod_int64(other._parent, other.lift())
1718-
return self.__crt(other)
1718+
return self._crt(other)
17191719

17201720
if not isinstance(self, IntegerMod_gmp):
17211721
if self._modulus.int64 == 1: return other
@@ -1725,7 +1725,7 @@ cdef class IntegerMod_abstract(FiniteRingElement):
17251725
if other._modulus.int64 == 1: return self
17261726
other = IntegerMod_gmp(other._parent, other.lift())
17271727

1728-
return self.__crt(other)
1728+
return self._crt(other)
17291729

17301730
def additive_order(self):
17311731
r"""
@@ -2132,7 +2132,7 @@ cdef class IntegerMod_gmp(IntegerMod_abstract):
21322132
"""
21332133
return self.lift().gcd(self.modulus()) == 1
21342134
2135-
def __crt(IntegerMod_gmp self, IntegerMod_gmp other):
2135+
def _crt(IntegerMod_gmp self, IntegerMod_gmp other):
21362136
cdef IntegerMod_gmp lift, x
21372137
cdef sage.rings.integer.Integer modulus, other_modulus
21382138
@@ -2521,7 +2521,7 @@ cdef class IntegerMod_int(IntegerMod_abstract):
25212521
"""
25222522
return gcd_int(self.ivalue, self._modulus.int32) == 1
25232523

2524-
def __crt(IntegerMod_int self, IntegerMod_int other):
2524+
def _crt(IntegerMod_int self, IntegerMod_int other):
25252525
"""
25262526
Use the Chinese Remainder Theorem to find an element of the
25272527
integers modulo the product of the moduli that reduces to self and
@@ -3346,7 +3346,7 @@ cdef class IntegerMod_int64(IntegerMod_abstract):
33463346
"""
33473347
return gcd_int64(self.ivalue, self._modulus.int64) == 1
33483348

3349-
def __crt(IntegerMod_int64 self, IntegerMod_int64 other):
3349+
def _crt(IntegerMod_int64 self, IntegerMod_int64 other):
33503350
"""
33513351
Use the Chinese Remainder Theorem to find an element of the
33523352
integers modulo the product of the moduli that reduces to self and

0 commit comments

Comments
 (0)