Skip to content
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

Merged
merged 3 commits into from Jul 1, 2023

Conversation

marizee
Copy link
Contributor

@marizee marizee commented Jun 29, 2023

πŸ“š Description

Assign to MAX_MODULUS of matrix_modn_dense_double.pyx the actual limit for LinBox Modular<double> (Givaro's maxCardinality)

It allows better speed performances for matrices over the integers mod N, for N having 24 to 27 bits.

Fixes #35806

πŸ“ Checklist

  • The title is concise, informative, and self-explanatory.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation accordingly.

βŒ› Dependencies

@@ -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
Copy link
Contributor

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

@@ -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`
Copy link
Contributor

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

@github-actions
Copy link

Documentation preview for this PR (built with commit 413f251; changes) is ready! πŸŽ‰

@vneiger
Copy link
Contributor

vneiger commented Jun 29, 2023

Looks good to me

@vneiger
Copy link
Contributor

vneiger commented Jul 1, 2023

The prime returned by max_det_prime in matrix_integer_dense_hnf.py should be updated.

@vbraun vbraun merged commit 9161c6c into sagemath:develop Jul 1, 2023
15 checks passed
@mkoeppe mkoeppe added this to the sage-10.1 milestone Jul 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extend MAX_MODULUS for matrix_modn_dense_double.pyx from 23 bits to 27 bits
5 participants