-
-
Notifications
You must be signed in to change notification settings - Fork 503
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
Extend MAX_MODULUS
of matrix_modn_dense_double.pyx
#35855
Conversation
src/sage/matrix/matrix_space.py
Outdated
@@ -617,7 +617,8 @@ def __init__(self, base_ring, nrows, ncols, sparse, implementation): | |||
|
|||
- ``linbox-float`` - for integer mod rings up to `2^8 = 256` | |||
|
|||
- ``linbox-double`` - for integer mod rings up to `2^23 = 8388608` | |||
- ``linbox-double`` - for integer mod rings up to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is trailing whitespace here
src/sage/matrix/matrix_space.py
Outdated
@@ -617,7 +617,8 @@ def __init__(self, base_ring, nrows, ncols, sparse, implementation): | |||
|
|||
- ``linbox-float`` - for integer mod rings up to `2^8 = 256` | |||
|
|||
- ``linbox-double`` - for integer mod rings up to `2^23 = 8388608` | |||
- ``linbox-double`` - for integer mod rings up to | |||
`floor(2^26*sqrt(2) + 1/2) = 94906266` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And trailing whitespace here as well
Documentation preview for this PR (built with commit 413f251; changes) is ready! 🎉 |
Looks good to me |
The prime returned by |
📚 Description
Assign to
MAX_MODULUS
ofmatrix_modn_dense_double.pyx
the actual limit for LinBoxModular<double>
(Givaro'smaxCardinality
)It allows better speed performances for matrices over the integers mod N, for N having 24 to 27 bits.
Fixes #35806
📝 Checklist
⌛ Dependencies