Commit 59a67bb
Release Manager
gh-40317: Implement partial integer factorization using flint
As in the title. This is more efficient than trial division, which is
the only currently implemented partial integer factorization algorithm.
Side note: it may be possible to reuse `limit=` argument and set
`bits=limit.bit_length()`, but this *kind of* break backwards
compatibility. (or maybe not?)
### 📝 Checklist
<!-- Put an `x` in all the boxes that apply. -->
- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.
### ⌛ Dependencies
<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - #12345: short description why this is a dependency -->
<!-- - #34567: ... -->
URL: #40317
Reported by: user202729
Reviewer(s): Sahil Jain, Travis Scrimshaw, user202729
File tree
5 files changed
+55
-23
lines changed- src/sage
- arith
- matrix
- misc
- rings
5 files changed
+55
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2560 | 2560 | | |
2561 | 2561 | | |
2562 | 2562 | | |
2563 | | - | |
| 2563 | + | |
2564 | 2564 | | |
2565 | 2565 | | |
2566 | 2566 | | |
| |||
2734 | 2734 | | |
2735 | 2735 | | |
2736 | 2736 | | |
| 2737 | + | |
| 2738 | + | |
| 2739 | + | |
| 2740 | + | |
| 2741 | + | |
2737 | 2742 | | |
2738 | 2743 | | |
2739 | 2744 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2978 | 2978 | | |
2979 | 2979 | | |
2980 | 2980 | | |
| 2981 | + | |
| 2982 | + | |
| 2983 | + | |
| 2984 | + | |
2981 | 2985 | | |
2982 | 2986 | | |
2983 | 2987 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1448 | 1448 | | |
1449 | 1449 | | |
1450 | 1450 | | |
1451 | | - | |
| 1451 | + | |
1452 | 1452 | | |
1453 | 1453 | | |
1454 | 1454 | | |
| |||
1808 | 1808 | | |
1809 | 1809 | | |
1810 | 1810 | | |
1811 | | - | |
| 1811 | + | |
1812 | 1812 | | |
1813 | 1813 | | |
1814 | 1814 | | |
| |||
2671 | 2671 | | |
2672 | 2672 | | |
2673 | 2673 | | |
2674 | | - | |
2675 | | - | |
| 2674 | + | |
| 2675 | + | |
2676 | 2676 | | |
2677 | 2677 | | |
2678 | 2678 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
92 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
93 | 97 | | |
94 | 98 | | |
95 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3912 | 3912 | | |
3913 | 3913 | | |
3914 | 3914 | | |
3915 | | - | |
3916 | | - | |
| 3915 | + | |
| 3916 | + | |
3917 | 3917 | | |
3918 | 3918 | | |
3919 | 3919 | | |
| |||
3932 | 3932 | | |
3933 | 3933 | | |
3934 | 3934 | | |
3935 | | - | |
| 3935 | + | |
3936 | 3936 | | |
3937 | 3937 | | |
3938 | 3938 | | |
| |||
3946 | 3946 | | |
3947 | 3947 | | |
3948 | 3948 | | |
| 3949 | + | |
| 3950 | + | |
| 3951 | + | |
| 3952 | + | |
3949 | 3953 | | |
3950 | 3954 | | |
3951 | 3955 | | |
| |||
3994 | 3998 | | |
3995 | 3999 | | |
3996 | 4000 | | |
| 4001 | + | |
| 4002 | + | |
| 4003 | + | |
| 4004 | + | |
| 4005 | + | |
| 4006 | + | |
| 4007 | + | |
3997 | 4008 | | |
3998 | 4009 | | |
3999 | 4010 | | |
| |||
4021 | 4032 | | |
4022 | 4033 | | |
4023 | 4034 | | |
4024 | | - | |
| 4035 | + | |
4025 | 4036 | | |
4026 | 4037 | | |
4027 | 4038 | | |
4028 | 4039 | | |
4029 | | - | |
4030 | | - | |
4031 | | - | |
4032 | 4040 | | |
4033 | 4041 | | |
4034 | 4042 | | |
| |||
4039 | 4047 | | |
4040 | 4048 | | |
4041 | 4049 | | |
4042 | | - | |
4043 | 4050 | | |
4044 | | - | |
4045 | | - | |
4046 | | - | |
4047 | | - | |
4048 | | - | |
| 4051 | + | |
4049 | 4052 | | |
4050 | 4053 | | |
| 4054 | + | |
| 4055 | + | |
4051 | 4056 | | |
4052 | 4057 | | |
4053 | 4058 | | |
| 4059 | + | |
| 4060 | + | |
| 4061 | + | |
| 4062 | + | |
| 4063 | + | |
| 4064 | + | |
| 4065 | + | |
| 4066 | + | |
| 4067 | + | |
| 4068 | + | |
| 4069 | + | |
| 4070 | + | |
4054 | 4071 | | |
4055 | 4072 | | |
4056 | 4073 | | |
| |||
4080 | 4097 | | |
4081 | 4098 | | |
4082 | 4099 | | |
4083 | | - | |
| 4100 | + | |
| 4101 | + | |
| 4102 | + | |
4084 | 4103 | | |
4085 | 4104 | | |
4086 | 4105 | | |
| |||
6698 | 6717 | | |
6699 | 6718 | | |
6700 | 6719 | | |
6701 | | - | |
| 6720 | + | |
6702 | 6721 | | |
6703 | 6722 | | |
6704 | 6723 | | |
6705 | 6724 | | |
6706 | 6725 | | |
6707 | | - | |
| 6726 | + | |
6708 | 6727 | | |
6709 | 6728 | | |
6710 | 6729 | | |
| |||
0 commit comments