Commit 67e6234
Release Manager
gh-38259: Fixed and improvements in `is_LLL_reduced` and `approximate_closest_vector`
This fixes #38115. Along with the goal stated there I have fixed some
stuff I wasn't happy with from the first iteration of
`approximate_closest_vector`. These changes could be breaking but seeing
as there has been no release since its introduction this shouldn't be a
problem.
Changes:
- Added the `algorithm` parameter to `is_LLL_reduced` along with the
new algorithm `fpLLL` which uses fpylll's `LLL.is_reduced` method, **and
made it the default**, as I see no advantages with the old
implementation.
- Added the `algorithm` parameter to `approximate_closest_vector` along
with the new algorithms `embedding` and `rounding_off`, **and made
`embedding` the default.**
- ~Changed the alias of `approximate_closest_vector` from `babai` to
`cvp` to be more accurate but still short.~
I'm getting weird errors when building documentation locally but I don't
think it's related to my changes, so I haven't been able to check if the
doc build looks alright yet. (and it won't build on my own repo b/c my
GitHub username has uppercase letters in it :)
### 📝 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.
- [x] 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.
URL: #38259
Reported by: TheBlupper
Reviewer(s): Giacomo Pope, Matthias Köppe, TheBlupper
File tree
2 files changed
+93
-35
lines changed- src/sage
- matrix
- modules
2 files changed
+93
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3297 | 3297 | | |
3298 | 3298 | | |
3299 | 3299 | | |
3300 | | - | |
| 3300 | + | |
3301 | 3301 | | |
3302 | 3302 | | |
3303 | 3303 | | |
| |||
3308 | 3308 | | |
3309 | 3309 | | |
3310 | 3310 | | |
| 3311 | + | |
| 3312 | + | |
3311 | 3313 | | |
3312 | 3314 | | |
3313 | 3315 | | |
| |||
3316 | 3318 | | |
3317 | 3319 | | |
3318 | 3320 | | |
| 3321 | + | |
| 3322 | + | |
| 3323 | + | |
| 3324 | + | |
| 3325 | + | |
| 3326 | + | |
| 3327 | + | |
| 3328 | + | |
| 3329 | + | |
3319 | 3330 | | |
3320 | 3331 | | |
3321 | 3332 | | |
| |||
3330 | 3341 | | |
3331 | 3342 | | |
3332 | 3343 | | |
3333 | | - | |
3334 | | - | |
3335 | | - | |
3336 | | - | |
3337 | | - | |
3338 | | - | |
3339 | | - | |
3340 | | - | |
3341 | | - | |
3342 | | - | |
3343 | | - | |
3344 | | - | |
3345 | | - | |
3346 | | - | |
| 3344 | + | |
| 3345 | + | |
| 3346 | + | |
| 3347 | + | |
| 3348 | + | |
| 3349 | + | |
| 3350 | + | |
| 3351 | + | |
| 3352 | + | |
| 3353 | + | |
| 3354 | + | |
| 3355 | + | |
| 3356 | + | |
| 3357 | + | |
| 3358 | + | |
| 3359 | + | |
| 3360 | + | |
| 3361 | + | |
| 3362 | + | |
| 3363 | + | |
| 3364 | + | |
3347 | 3365 | | |
3348 | 3366 | | |
3349 | 3367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
784 | 785 | | |
785 | 786 | | |
786 | 787 | | |
787 | | - | |
| 788 | + | |
788 | 789 | | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
797 | 793 | | |
798 | 794 | | |
799 | 795 | | |
| |||
805 | 801 | | |
806 | 802 | | |
807 | 803 | | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
808 | 816 | | |
809 | 817 | | |
810 | 818 | | |
| |||
825 | 833 | | |
826 | 834 | | |
827 | 835 | | |
828 | | - | |
| 836 | + | |
829 | 837 | | |
830 | 838 | | |
831 | 839 | | |
832 | 840 | | |
833 | 841 | | |
834 | | - | |
835 | | - | |
836 | | - | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
837 | 847 | | |
838 | 848 | | |
839 | 849 | | |
840 | 850 | | |
841 | | - | |
| 851 | + | |
842 | 852 | | |
843 | 853 | | |
844 | 854 | | |
845 | 855 | | |
846 | | - | |
847 | 856 | | |
848 | 857 | | |
849 | | - | |
850 | | - | |
851 | | - | |
852 | | - | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
853 | 886 | | |
854 | | - | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
0 commit comments