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

Test gr_poly over random rings #2277

Merged
merged 2 commits into from
Apr 1, 2025

Conversation

mezzarobba
Copy link
Contributor

Also fix a small bug this revealed in gr_set_str.

@fredrik-johansson
Copy link
Collaborator

fredrik-johansson commented Apr 1, 2025

Looks good. Name clashes ought to be prevented already when constructing rings, but it's reasonable to catch in the parsing code too.

Edit: one concern is that this code is O(n^2) in the number of generators but I think we already have that kind of complexity elsewhere. For rings with lots of generators the parsing ought to be lazy anyway.

@fredrik-johansson fredrik-johansson merged commit 63805bd into flintlib:main Apr 1, 2025
12 of 13 checks passed
@mezzarobba
Copy link
Contributor Author

Edit: one concern is that this code is O(n^2) in the number of generators

This is easier to avoid than I thought. → #2283

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants