-
-
Notifications
You must be signed in to change notification settings - Fork 648
Add lattice utility functions #40571
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
base: develop
Are you sure you want to change the base?
Conversation
98c1c91
to
b7b9385
Compare
Documentation preview for this PR (built with commit 1374ad6; changes) is ready! 🎉 |
|
||
sage: from sage.modules.free_module_integer import IntegerLattice | ||
sage: L = IntegerLattice([[101, 0, 0, 0], [0, 101, 0, 0], [0, 0, 101, 0], [-28, 39, 45, 1]]) | ||
sage: float(L.gaussian_heuristic()) |
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.
consider adding # rel tol 1e-13
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.
Updated, unfortunately I rebased though 🥲
a184f89
to
a51d8fe
Compare
This PR adds two lattice utility functions, namely,
gaussian_heuristic
andhadamard_ratio
. These are useful when evaluating how good the approx CVP/SVP solutions are to the exact CVP/SVP solutions.📝 Checklist