#16725: Implement a general monoid_generators for groups
-------------------------------------+-------------------------------------
       Reporter:  tscrim             |        Owner:  tscrim
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.3
      Component:  group theory       |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Travis Scrimshaw   |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  public/groups/monoid_generators-16725|  
c64a5fb9487a0d54da40acd2003b0a2930f06207
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by ncohen):

 Yoooooo !

 > Right (unless the user implements a custom `group_generators()`, which
 is the current recommendation). (Side note, this exact error shouldn't
 happen with #16718.)

 Right right. I just don't know much about groups in Sage, and it was the
 only way I knew to produce the bug `:-)`

 > The other option would be to not have `group_generators` call
 `monoid_generators`. I think the infinite loop is the lesser of two evils
 (at least until we have the framework for semi-abstract methods like
 this).

 Hmmmm... And what would you think of not having `group_generators` call
 `monoid_generators`, and have `group_generators` raise an exception if
 `gens()` is not defined ? Something like that ?

 {{{AttributeError: No generators are available for this group. Please
 implement a .group_generators() method}}}

 It would tell the user what he needs to do in order to make everything
 work ?...

 By the way I do not really understand what this `.gens()` exactly is. The
 code seems to assume that `.gens()` returns group generators, but in this
 case does the monoid code assume that `.gens()` returns monoid generators
 too ?

 `gens()` should be the one calling `group_generators`, not the other way
 around `:-/`

 Nathann

--
Ticket URL: <http://trac.sagemath.org/ticket/16725#comment:8>
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.

Reply via email to