#14291: Orbits of tuples and sets
---------------------------------+------------------------------------------
Reporter: ncohen | Owner: joyner
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-5.9
Component: group theory | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Nathann Cohen | Merged in:
Dependencies: | Stopgaps:
---------------------------------+------------------------------------------
Comment (by dimpase):
Replying to [comment:10 ncohen]:
> Some small modifications to the documentation. Besides this :
>
> 1) What would you think of making `supported_actions` a variable of the
module itself ? And what of making it a hidden variable ?
The current setup allows it to be extended by the user, right?
>
> 2) What would you think of sorting the input when it represents a set
?.. GAP's error message when it is fed with an unsorted list is not that
clear :
> {{{
> Error, OnSets: <set> must be a set (not a list (plain,cyc,nsort,imm))
> }}}
>
> I will do that if you agree with it.
sure this can be done as you prefer. However, there is a more serious
issue with {{{self.action}}}:
{{{
sage: G = PermutationGroup([ [('c','d')], [('a','c')] ])
sage: xx=G.orbit(('a','c'),"OnPairs")
sage: G.action(xx,"OnPairs")
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call
last)
<ipython-input-4-540be1338037> in <module>()
----> 1 G.action(xx,"OnPairs")
...
}}}
Indeed, {{{_domain_to_gap[x] }}} needs to be applied onto such orbits. I
am thinking that one should have recursive function version of
{{{_domain_to_gap[x] }}} and of {{{_domain_from_gap[x] }}} to deal with
things like sets, sets of sets, etc in one go rather
than call them explicitly.
One can also (or instead) attach such a pair of functions to each action
in {{{supported_actions}}} to do this rewriting.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14291#comment:11>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.