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

PermutationGroup.minimal_generating_set (from GAP) #17007

Closed
nathanncohen mannequin opened this issue Sep 18, 2014 · 14 comments
Closed

PermutationGroup.minimal_generating_set (from GAP) #17007

nathanncohen mannequin opened this issue Sep 18, 2014 · 14 comments

Comments

@nathanncohen
Copy link
Mannequin

nathanncohen mannequin commented Sep 18, 2014

Just the boring ol' wrapping.

Nathann

CC: @dimpase

Component: group theory

Author: Nathann Cohen

Branch/Commit: 4c583ea

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/17007

@nathanncohen nathanncohen mannequin added this to the sage-6.4 milestone Sep 18, 2014
@nathanncohen
Copy link
Mannequin Author

nathanncohen mannequin commented Sep 18, 2014

Branch: u/ncohen/17007

@nathanncohen nathanncohen mannequin added the s: needs review label Sep 18, 2014
@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 18, 2014

Commit: 7b2f281

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 18, 2014

Branch pushed to git repo; I updated commit sha1. New commits:

7b2f281trac #17007: PermutationGroup.minimal_generating_set (from GAP)

@dimpase
Copy link
Member

dimpase commented Sep 18, 2014

comment:3

You are not the first to need to convert GAP permutations into Sage ones. There is sage.groups.perm_gps.permgroup.from_gap_list() that does the dirty part, just call it...

(dunno why this function is not exported, perhaps it should be, then it can be easy to find...)

@nathanncohen
Copy link
Mannequin Author

nathanncohen mannequin commented Sep 18, 2014

comment:4

Well perhaps, but is miserably fails when the group is not defined over integers.

sage: g=PermutationGroup(["(1,2,3)(4,5,6)","(1,2,3,4,5,6)"])                               
sage: sage.groups.perm_gps.permgroup.from_gap_list(g,str(g._gap_().MinimalGeneratingSet()))
[(2,5)(3,6), (1,5,3,4,2,6)]
sage: g=PermutationGroup([('a','b','c')])                                                  
sage: sage.groups.perm_gps.permgroup.from_gap_list(g,str(g._gap_().MinimalGeneratingSet()))
...
ValueError: Invalid permutation vector:  (1,2,3) 

@nathanncohen
Copy link
Mannequin Author

nathanncohen mannequin commented Sep 18, 2014

comment:5

Yo !

You are not the first to need to convert GAP permutations into Sage ones. There is sage.groups.perm_gps.permgroup.from_gap_list() that does the dirty part, just call it...

This function was so useful that I overwrote it with my code. Thanks :-P

Nathann

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 18, 2014

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

44ba55ctrac #17007: PermutationGroup.minimal_generating_set (from GAP)

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 18, 2014

Changed commit from 7b2f281 to 44ba55c

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 18, 2014

Changed commit from 44ba55c to 4c583ea

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 18, 2014

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

4c583eatrac #17007: PermutationGroup.minimal_generating_set (from GAP)

@dimpase
Copy link
Member

dimpase commented Sep 18, 2014

comment:8

LGTM. Hopefully the long tests pass everywhere after this change.

@vbraun
Copy link
Member

vbraun commented Sep 18, 2014

comment:9

Reviewer name

@nathanncohen
Copy link
Mannequin Author

nathanncohen mannequin commented Sep 18, 2014

Reviewer: Dima Pasechnik

@vbraun
Copy link
Member

vbraun commented Sep 19, 2014

Changed branch from u/ncohen/17007 to 4c583ea

@vbraun vbraun closed this as completed in 3de47da Sep 19, 2014
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

2 participants