-
-
Notifications
You must be signed in to change notification settings - Fork 489
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
rewrite Matrix_modn_sparse and vector_modn_sparse code so that the modulus is 64-bit on 64-bit platforms #12679
Comments
comment:1
As discussed in #14627, this should really be signed |
comment:7
tentative New commits:
|
Branch: u/chapoton/12679 |
Commit: |
comment:9
Is this a good idea or not ? |
Author: Frédéric Chapoton |
comment:10
I strongly support using ints with a specified size when they will be used for arithmetic. I am not familar with the Win64 support problem so I can not tell for this aspect, but otherwise, this seems like a very good move. |
comment:11
Thanks. And the patchbot is green. So we should ask Erik what happens on Windows. Erik ? |
comment:12
Erik or anybody else ? review, opinion, please ? |
comment:13
Do someone have any comments ? Could somebody please test on Windows ? |
Reviewer: Travis Scrimshaw |
comment:14
LGTM. |
comment:15
I do need to get the Cygwin patchbot working again. I was running one for a time but it went down, and I never got it running again. Samuel also had one running for a time but he's out of town and I don't know what happened to it. Maybe I'll work on that today. Nevertheless I don't see any special reason to test this on Windows. int_fast_64_t is part of the C99 standard and will resolve to the appropriate type on the target platform. |
comment:16
Replying to @vbraun:
I see, you were worrying about this comment. But it's not an issue. I think the concern here was that on native Windows compilers Plus it's only an issue for Python 2. In the Python 3 |
Changed branch from u/chapoton/12679 to |
Right now the matrix modn sparse class uses ints to store entries. The basic reason is the code
in sage/modules/vector_modn_sparse_h.pxi. This should probably instead use the unsigned C99 type uint_fast64_t.
CC: @sagetrac-Bouillaguet @ClementPernet @embray @videlec
Component: linear algebra
Author: Frédéric Chapoton
Branch/Commit:
bc31936
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/12679
The text was updated successfully, but these errors were encountered: