-
-
Notifications
You must be signed in to change notification settings - Fork 452
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
NTL modulus not reset correctly #45
Milestone
Comments
comment:1
This is fixed now, interestingly, but maybe the problem is still there?
|
comment:3
OK, I finally replicated the problem correctly, then tracked it down and fixed it.
|
vbraun
pushed a commit
to vbraun/sage
that referenced
this issue
Jul 20, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think what's happening is the following. The first p+q calls Polynomial_dense_mod_n.add(). This function does not reset the NTL modulus correctly before calling ntl_ZZ_pX.add(), hence the first bogus answer. Then Polynomial_dense_mod_n.add() calls PolynomialRing_dense_mod_n.call(), which does reset the NTL modulus.
Component: basic arithmetic
Issue created by migration from https://trac.sagemath.org/ticket/45
The text was updated successfully, but these errors were encountered: