-
Notifications
You must be signed in to change notification settings - Fork 29
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
Make fmpq_poly.factor() return primitive factors #189
Merged
oscarbenjamin
merged 15 commits into
flintlib:master
from
oscarbenjamin:pr_fmpq_poly_factor_prim
Aug 19, 2024
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
8c4cc87
Make fmpq_poly.factor() return primitive factors
oscarbenjamin c7a564c
Test all poly types can factor the zero poly
oscarbenjamin a0eed7d
fmpz_mod_poly.factor - handle constant case
oscarbenjamin 2f71b58
Add leading_coefficient to fmpz_poly and fmpq_poly
oscarbenjamin 1abfb62
Simplfify fmpz_poly.leading_coefficient
oscarbenjamin 01e6418
Include nmod_mpoly and fmpz_mod_mpoly in factor test
oscarbenjamin c89ae73
Include composite modulus in poly tests
oscarbenjamin 8d4cf40
Add factor_squarefree to all poly/mpoly types
oscarbenjamin fe7265d
Fix doctests
oscarbenjamin dcbe363
Add .sqrt() for all scalar types and add docstrings
oscarbenjamin 26f85d6
Add tests for sqrt/gcd/xgcd
oscarbenjamin 3881822
Comments to denot poly types
oscarbenjamin f29a0fc
Add trivial gcd tests
oscarbenjamin c65ba5d
Clean up exceptions and composite_characteristic
oscarbenjamin e4f2e8d
Update nmod_poly_factor_struct declaration.
oscarbenjamin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This was out of data compared to what I see in the Flint code.
On 64-bit Windows at least
long
andslong
are not equivalent and this has been a common cause of Windows-specific crashes.I think over time Flint itself has cleaned up its use of slong in place of long for many interfaces. Some of python-flint's code predates Flint cleaning these things up though so we have some things like this that are out of date.
It is likely that almost all of these 635 lines should change from long to slong:
Certainly these are out of date because
prec
should beslong
:https://flintlib.org/doc/arb.html