-
-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sage.rings.integer, integer_ring: Remove dependencies on sage.libs.ntl #29911
Comments
comment:1
Hum,
and
on Gentoo compiled with |
comment:2
It's a compile time dependency. It's possible that it is all macros or inlined functions. |
This comment has been minimized.
This comment has been minimized.
comment:5
Would it make sense to make these two methods functions in |
Commit: |
New commits:
|
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
Author: Matthias Koeppe |
Dependencies: #29786 |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed dependencies from #29786 to none |
comment:15
The dependency has been merged in 9.2.beta3. Needs review |
comment:16
Replying to @mkoeppe:
This sounds like a good idea to me. Why do you remove the calls to |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:18
Rebased on 9.2.beta5 |
comment:19
Replying to @mwageringel:
Good question. I am not sure against what kind of errors these calls were supposed to be guarding. |
comment:21
Hoping for a Cython expert to take a look... |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:23
While I would not count myself as a Cython expert, my guess would be if the denominator was somehow not something that could be handled? Perhaps some kind of overflow or unable to allocate memory? I am really unsure. |
Reviewer: Travis Scrimshaw |
comment:24
Well, let's put this into practice as I cannot find a reason for it. Well, perhaps we should just put it into Sage to get some broader testing as it seems safe enough to me. |
comment:25
Thanks! |
Changed branch from u/mkoeppe/sage_rings_integer__integer_ring__remove_dependencies_on_sage_libs_ntl to |
The two Cython modules depend on NTL in a very minor way that could be eliminated:
sage.rings.integer.Integer
depends onsage.libs.ntl
to provide method_to_ZZ
.sage.rings.integer_ring._coerce_ZZ
depends onsage.libs.ntl
to provide the method_coerce_ZZ
.These methods are only used in
sage.libs.ntl
and insage.rings.number_field.number_field_element
andrings.polynomial.polynomial_zz_pex
.In this ticket, we remove these two methods and replace all uses by their definition (= 1 or 2 lines).
CC: @videlec @fchapoton @alexjbest @mezzarobba @kliem @mwageringel @tscrim
Component: refactoring
Author: Matthias Koeppe
Branch/Commit:
62e2aa9
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/29911
The text was updated successfully, but these errors were encountered: