#19737: SetPartition.to_permutation().cycle_tuples() is not the identity
-------------------------------------+-------------------------------------
       Reporter:  mantepse           |        Owner:
           Type:  defect             |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-7.0
      Component:  combinatorics      |   Resolution:
       Keywords:  set partitions,    |    Merged in:
  permutations                       |    Reviewers:
        Authors:  Martin Rubey       |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  7d20d99b2d4b969b4ea2aa00cc71d279deeffbf4
  u/mantepse/setpartition_to_permutation___cycle_tuples___is_not_the_identity|  
   Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------
Changes (by dimpase):

 * status:  needs_review => needs_work


Comment:

 {{{
 sage: s=SetPartition([[0,1,2],[3,4]])
 sage: s.to_permutation()
 ---------------------------------------------------------------------------
 ValueError                                Traceback (most recent call
 last)
 ...
 ValueError: All elements should be strictly positive integers, and I just
 found a negative one.
 }}}

 even 0 is negative in this code...

--
Ticket URL: <http://trac.sagemath.org/ticket/19737#comment:9>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to