Hi Simon, On Sun, Sep 30, 2018 at 11:01 AM Simon King <simon.k...@uni-jena.de> wrote:
> On 2018-09-30, Dima Pasechnik <dimp...@gmail.com> wrote: > > if you have a nontrivial GAP computation to be done in libgap, why not just > > use libgap's function_factory? > > Then you don't need to jump various hoops across sage/libgap boundary. > > If I understand correctly, the function_factory allows to create a > libgap function from the string of a GAP function. But that doesn't > explain how to set or not set optional values of such function, as in > the GAP syntax > regularPermutationAction(G: forceDefiningGenerators) it was written before optional parameters era in GAP, as far as I know. Anyhow, you can use GAP's PushOptions() and PopOptions() to achieve more or less the same effect, with a big uglier syntax. Sage's (lib)GAP is lagging behind the GAP development quite a bit, as you might know. See https://trac.sagemath.org/ticket/22626 So it's more urgent to catch up. Dima > > In my concrete example, the function regularPermutationAction is defined > in some file that can be read into libgap, and I could easily create > just TWO versions of that function, once with > forceDefiningGenerators=true, and once with > forceDefiningGenerators=false. However, I am asking for the general > picture. > > Best regards, > Simon > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-support+unsubscr...@googlegroups.com. > To post to this group, send email to sage-support@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-support. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.