This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sage.rings.integer_ring.IntegerRing_class._coerce_ZZ: Remove, replace…
…s uses by calls to ZZ_to_mpz
- Loading branch information
Matthias Koeppe
committed
Jul 13, 2020
1 parent
95cf15c
commit 0915137
Showing
6 changed files
with
19 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
from .ring cimport PrincipalIdealDomain | ||
from .integer cimport Integer | ||
from sage.libs.gmp.types cimport mpz_t | ||
from sage.libs.ntl.types cimport ZZ_c | ||
|
||
cdef class IntegerRing_class(PrincipalIdealDomain): | ||
cdef Integer _coerce_ZZ(self, ZZ_c *z) | ||
cdef int _randomize_mpz(self, mpz_t value, x, y, distribution) except -1 | ||
cdef object _zero |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters