-
-
Notifications
You must be signed in to change notification settings - Fork 479
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
construct AdditiveAbelianGroupWrapper from (not necessarily independent) generating set #35270
construct AdditiveAbelianGroupWrapper from (not necessarily independent) generating set #35270
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #35270 +/- ##
===========================================
- Coverage 88.62% 88.61% -0.01%
===========================================
Files 2148 2148
Lines 398653 398754 +101
===========================================
+ Hits 353308 353369 +61
- Misses 45345 45385 +40
... and 25 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. |
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.
I would remove the commented out lines.
Also _expand_basis_pgroup
doesn't seem to be called from anywhere within the library. Should it be? Or have I missed something?
They are commented out for performance, but they will be very helpful to anyone who might later want to understand or debug or modify this code. I can replace them with textual descriptions of the expected behaviour of the code if you prefer, but to me the assertions seem better. What I would actually like is for Sage to disable assertions (
It is called here. |
True; I full agree with you about being able to disable Personal preference, I like the comment
Whoops, yes indeed. |
Documentation preview for this PR is ready! 🎉 |
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.
Great, thanks a lot! 🙂 |
Currently, constructing an
AdditiveAbelianGroupWrapper
requires prior knowledge of an independent set of generators for the group. This patch adds an algorithm (implemented following Sutherland's thesis) to construct anAdditiveAbelianGroupWrapper
from an arbitrary generating set, whose members need not be independent. This is useful for all kinds of things, including structure computations for finite abelian groups.