Skip to content
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

Use gap iterators to iterate over the conjugacy classes of subgroups #38300

Open
1 task done
mantepse opened this issue Jun 28, 2024 · 0 comments
Open
1 task done

Use gap iterators to iterate over the conjugacy classes of subgroups #38300

mantepse opened this issue Jun 28, 2024 · 0 comments

Comments

@mantepse
Copy link
Collaborator

Problem Description

Currently we can only compute a list of all subgroups up to conjugacy, using G.conjugacy_classes_subgroups(). If we only want to look at the first few, we are out of luck.

Proposed Solution

Use Gap's iterators:

def conjugacy_classes_subgroups_iterator(self):
    it = libgap.Iterator(self._libgap_().ConjugacyClassesSubgroups())
    while not it.IsDoneIterator().sage():
        sub = it.NextIterator()
        yield self.subgroup(gap_group=sub.Representative())

Alternatives Considered

bäh.

Additional Information

No response

Is there an existing issue for this?

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant