-
-
Notifications
You must be signed in to change notification settings - Fork 654
__iter__ method for the AffineGroup class #40456
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
Conversation
Actually, this does not fix #40412. After this PR, |
Possibly, it should belong to the category |
That's a good question, but I think the answer is clearly
So I don't think that implementing |
Thanks for the review! |
sagemathgh-40456: __iter__ method for the AffineGroup class Fixes sagemath#40412. If it is possible to iterate over a vector space and the corresponding general linear group, then it should also be possible to iterate over the associated affine group. So we add an `__iter__` method to the `AffineGroup` class (and also a `__len__` method). ### 📝 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. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#40456 Reported by: DaveWitteMorris Reviewer(s):
sagemathgh-40456: __iter__ method for the AffineGroup class Fixes sagemath#40412. If it is possible to iterate over a vector space and the corresponding general linear group, then it should also be possible to iterate over the associated affine group. So we add an `__iter__` method to the `AffineGroup` class (and also a `__len__` method). ### 📝 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. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#40456 Reported by: DaveWitteMorris Reviewer(s):
sagemathgh-40456: __iter__ method for the AffineGroup class Fixes sagemath#40412. If it is possible to iterate over a vector space and the corresponding general linear group, then it should also be possible to iterate over the associated affine group. So we add an `__iter__` method to the `AffineGroup` class (and also a `__len__` method). ### 📝 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. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#40456 Reported by: DaveWitteMorris Reviewer(s):
sagemathgh-40456: __iter__ method for the AffineGroup class Fixes sagemath#40412. If it is possible to iterate over a vector space and the corresponding general linear group, then it should also be possible to iterate over the associated affine group. So we add an `__iter__` method to the `AffineGroup` class (and also a `__len__` method). ### 📝 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. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#40456 Reported by: DaveWitteMorris Reviewer(s):
sagemathgh-40456: __iter__ method for the AffineGroup class Fixes sagemath#40412. If it is possible to iterate over a vector space and the corresponding general linear group, then it should also be possible to iterate over the associated affine group. So we add an `__iter__` method to the `AffineGroup` class (and also a `__len__` method). ### 📝 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. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#40456 Reported by: DaveWitteMorris Reviewer(s):
Fixes #40412.
If it is possible to iterate over a vector space and the corresponding general linear group, then it should also be possible to iterate over the associated affine group. So we add an
__iter__
method to theAffineGroup
class (and also a__len__
method).📝 Checklist
⌛ Dependencies