On Sun, 07 Jan 2007 22:30:22 -0800, David Kohel <[EMAIL PROTECTED]> wrote:
Hi David J et al.,
There are two "natural" representations for permutations, cycles, and
enumerated
lists of images (or indices). In addition to this constructor:
sage: G = SymmetricGroup(14)
sage: G = SymmetricGroup
Hi William,
Oops, I forgot to post my reply to my own message. This is the
solution I found,
using the same GAP manual entry for PermList.
def gap_format_cycles(x):
"""
Put a permutation in Gap format, as a string.
"""
x = str(x).replace(' ','')
return x.replace('),(',')(').repl
On Sun, 14 Jan 2007 21:23:35 -0800, David Kohel <[EMAIL PROTECTED]> wrote:
sage: I = [3, 13, 16, 7, 15, 23, 6, 9, 10, 18, 5, 19, 24, 14, 25, 2,
11, 21, 4, 1, 12, 17, 8, 20, 22, 26]
sage: G = SymmetricGroup(26)
sage: G(I)
I can't trace where the PermList string is getting lost on the way to
or
On Sun, 14 Jan 2007 21:23:35 -0800, David Kohel <[EMAIL PROTECTED]> wrote:
sage: I = [3, 13, 16, 7, 15, 23, 6, 9, 10, 18, 5, 19, 24, 14, 25, 2,
11, 21, 4, 1, 12, 17, 8, 20, 22, 26]
sage: G = SymmetricGroup(26)
sage: G(I)
I can't trace where the PermList string is getting lost on the way to
or f
Hi Robert,
On Apr 8, 2:54 pm, Robert Miller wrote:
> In another thread (finite complex reflection groups and matrices over
> the universal cyclotomic field), Christian wrote:
> > - is there a Sage implementation of permutation groups, or only the
> > gap implementation (it takes very long t
Hi Nicolas,
On 2014-05-01, Nicolas M. Thiery wrote:
> Analysis: the __setstate__ method of ParentWithGens does not store the
> category whenever _element_constructor is not implemented.
Funny.
> Some approaches to fix this include:
>
> - Use UniqueRepresentation for permutation groups.
> (wit
Hi Simon,
Just a quick answer.
On Thu, May 01, 2014 at 09:05:59AM +, Simon King wrote:
> > - Implement a __reduce__ method to pickle by construction.
>
> This would mean to store the input parameters somewhere, which is likely
> to create new memory leaks.
There already is a .constr