-
-
Notifications
You must be signed in to change notification settings - Fork 401
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bug in QF.find_primitive_p_divisible_vector__next #36551
Conversation
Ping @yyyyx4 : if you find the time for a quick review, this is a very small PR that fixes a few annoying bugs in ternary quadratic forms. Most of the changed lines are new (simple) doctests for the bugs. Thanks. |
Your changes look good to me. As a side remark (which is orthogonal to this patch), the API with |
When the vector [0,...,0,1] is a zero mod p, it was missed from the iteration. Fix by check and return it if this is the case. A doctest triggering the bug is included.
Similar to QF.is_globally_equivalent_to, etc.
This breaks TernaryQF.find_p_neighbor_from_vec().
Documentation preview for this PR (built with commit 522edd1; changes) is ready! 馃帀 |
@vbraun I'd appreciate if this could be merged for 10.2, as it fixes two real annoying bugs and it's quite unobtrusive. I'm finishing a paper+code and it'd be nice if it works on unpatched 10.2. |
883e05f
to
e349b00
Compare
Quoting #36031 (comment):
|
Yes, that's the documented mechanism to request that something be included in the release. |
When the vector [0,...,0,1] is a zero mod p, it was missed from the iteration. Fix by check and return it if this is the case.
A doctest triggering the bug is included.
The second commit adds a return_matrix option for QF.find_p_neighbor_from_vec which is related and useful, similar to QF.is_globally_equivalent_to, etc.
馃摑 Checklist