#16926: Merge the features of SymmetricGroupAlgebra and SymmetricGroup.algebra
-------------------------------------+-------------------------------------
       Reporter:  nthiery            |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.4
      Component:  combinatorics      |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Travis Scrimshaw   |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  public/combinat/fix_sga-16926      |  18b3441e41e0f30b6bc02bd5a746096b17189e27
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by tscrim):

 `__contains__` is a definite no because the subclasses want that to use
 that check. However, I moved `__iter__` and a bunch of other methods to
 `StandardPermutations_n` since they were (potentially) giving wrong
 results. I also used `itertools` for the iteration because it was ~20x
 faster:
 {{{
 sage: %timeit len(list(itertools.permutations(range(1,6), 5)))
 10000 loops, best of 3: 36.5 µs per loop
 sage: %timeit len(list(Permutations_set._fast_iter(range(1,6))))
 1000 loops, best of 3: 658 µs per loop
 }}}

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