-
-
Notifications
You must be signed in to change notification settings - Fork 510
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
cleaning and enhancement to PolyDict #35174
Conversation
@videlec I'm currently in Chamonix with bad internet; I'll try to take a look at this over the weekend. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #35174 +/- ##
===========================================
+ Coverage 88.58% 88.61% +0.03%
===========================================
Files 2141 2148 +7
Lines 397475 398873 +1398
===========================================
+ Hits 352106 353472 +1366
- Misses 45369 45401 +32
... and 149 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
70393bd
to
bcec6b3
Compare
- make all PolyDict methods but two cpdef and doctested - implement binary search in ETuple
The situation with trailing zeros evaluating to sage: from sage.rings.polynomial.polydict import PolyDict
sage: R.<t> = PowerSeriesRing(QQ)
sage: PolyDict({(1, 0): O(t)}) == PolyDict({})
False
sage: PolyDict({(1, 0): O(t)}) == PolyDict({(1, 0): O(t^2)})
True Similarly, |
I will take a look at this tonight. Indeed, the removal of zeros in general (not just trailing) definitely is useful at keeping this consistent and fast an should be done as much as possible. |
Documentation preview for this PR is ready! 🎉 |
Actually changing |
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.
Thank you. LGTM. We can always do more changes later should we find other improvements.
📚 Description
Fixes #34000 (and more complete version of the proposition at #35020).
A discussion about the general problem of inexact zeros has been opened at #35319
📝 Checklist