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
Vector_modn_dense used for too large a modulus? #15220
Milestone
Comments
Initial patch |
comment:1
Attachment: trac_15220_max_modulus.patch.gz |
Author: Volker Braun |
comment:2
Yes, this is from #14627. Would have been nice if there would have been doctests... I think its pretty trivial fix so we should get that into the next Sage release. |
comment:3
Looks good to me--and solves my problem. Thanks! |
Reviewer: Marc Mezzarobba |
Merged: sage-5.12.rc0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sage.rings.finite_rings.integer_mod?
says thatIntegerMod_int64
"is used if the modulus is less than2^{31}-1
".Consider however a vector of elements of
GF(p)
withp
between 231 and 232:Then:
which breaks some operations:
This does not happens with modular integers themselves:
Matrices do not seem affected either.
Things work fine with sage-5.8 on the same machine. This makes me suspect that the issue might have been introduced in aa83d6e (#14627)—but I didn't check.
Component: linear algebra
Author: Volker Braun
Reviewer: Marc Mezzarobba
Merged: sage-5.12.rc0
Issue created by migration from https://trac.sagemath.org/ticket/15220
The text was updated successfully, but these errors were encountered: