-
Notifications
You must be signed in to change notification settings - Fork 129
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
Rename conjugacy_classes_maximal_subgroups
and maximal_subgroup_classes
or even just *subgroups
#3265
Comments
The following can be done in a non-breaking way:
The following changes would be breaking:
|
The iterator version is quite important for our applications. Should we separate it into two methods? |
What I always find irritating, is that now |
@thofma Thanks for your comments.
If I understand this idea right then it means that
One argument is that Magma does the same: Magma's |
Magma's |
@thofma Good point.
This looks as if one asks whether |
Maybe there won't be an On the other hand, I would expect that the "expert" knows that the conjugacy classes are need and thus would probably use |
Yes, currently the conjugacy classes of elements and subgroups in groups do not have |
All in all I am fine with the compromise that we have In addition (but this optional and should not block a change if we can't agree oni t), I would let non-classes variants not return a vector but "just" an iterator, i.e.:
so that subgroups returns an iterator, not a vector. That way at least some computations are deferred. And one can always use |
I think this is resolved by #3291. |
We discussed it before:
conjugacy_classes_maximal_subgroups
is hard to find via TAB completion, which we could solve by calling itmaximal_subgroup_classes
.Likewise for
conjugacy_classes_subgroups
->subgroup_classes
.The old names could be kept but deprecated.
If we have this, is there even need for
subgroup_reps
? It would be equivalent tomap(representative, subgroup_classes(g)
Similar for
maximal_subgroups
.Going one step further (we also discussed this before...), perhaps we should indeed just call these
subgroups
andmaximal_subgroups
? Anyone who really wants all (maximal) subgroups has to do a little bit more work then, but otherwise it would steer people into the right direction (in many (most?) applications it is better to work with conjugacy classes). I think this is what Magma does.IMHO this would also remove the need for
subgroup_reps
/maximal_subgroup_reps
In addition, I think also all other
*subgroup_reps
functions should be adjusted to provide similar features / variants assubgroups
andmaximal_subgroups
hall_subgroup_reps
: either addhall_subgroup_classes
andhall_subgroups
(returning a vector of groups), or just addhall_subgroup
and let it return a vector of conjugacy classlow_index_subgroup_reps
: dittocomplement_class_reps
: dittoThe text was updated successfully, but these errors were encountered: