#16018: Symmetric group conjugacy class iterator
-------------------------------------+-------------------------------------
Reporter: vdelecroix | Owner: Vincent Delecroix
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.4
Component: combinatorics | Resolution:
Keywords: symmetric group, | Merged in:
permutations, iterator | Reviewers:
Authors: Travis Scrimshaw | Work issues:
Report Upstream: N/A | Commit:
Branch: | 1339080a3d55bd3116947ff49210b5deb9a053cd
public/groups/conjugacy_classes_symmetric_group-16018| Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by tscrim):
Replying to [comment:6 vdelecroix]:
> I do. Let me add it to the branch.
Thanks.
> > A question, do you think should we add similar methods to
`Permutations_n`?
>
> I don't know. Most of the time I found that playing with classes makes
life harder and I mostly program using tuple and/or lists (this is what my
iterator is). One way to make it would be:
> - have this iterator (somehow hidden) that output lists
> - use it for both `SymmetricGroup` and `Permutations_n`
>
> What do you think?
Well, I went ahead and played with classes. I implemented a class
specifically for conjugacy classes of the symmetric group (in part for the
future with implementing a direct computation of character tables directly
in Sage, in part to override the behavior of `ConjugacyClassGap` and allow
easier future refactoring). However I left your function as a low-level
iterator.
I'm leaning towards just leaving it until we consider `Partitions_n` as a
group (at which time we'll be throwing a lot of functionality at it I
think). I designed the current version with this in mind (that I didn't
want to do this right now `:p`).
--
Ticket URL: <http://trac.sagemath.org/ticket/16018#comment:9>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.