#18208: `AlternatingSignMatrices(3, use_monotone_triangles=False)` broken
-------------------------+-------------------------------------------------
   Reporter:  darij      |            Owner:
       Type:  defect     |           Status:  new
   Priority:  major      |        Milestone:  sage-6.7
  Component:             |         Keywords:  alternating sign matrix,
  combinatorics          |  contretableaux, tableaux
  Merged in:             |          Authors:
  Reviewers:             |  Report Upstream:  N/A
Work issues:             |           Branch:
     Commit:             |     Dependencies:
   Stopgaps:             |
-------------------------+-------------------------------------------------
 I have added a comment in the sourcecode in #18075, but someone actually
 should fix this:

 (path: root/src/sage/combinat/alternating_sign_matrix.py)
 {{{
     def __iter__(self):
         r"""
         Iterator on the alternating sign matrices of size `n`.

         If defined using ``use_monotone_triangles``, this iterator
         will use the iteration on the monotone triangles. Else, it
         will use the iteration on contre-tableaux.

         TESTS::

             sage: A = AlternatingSignMatrices(4)
             sage: len(list(A))
             42
         """
         if self._umt:
             for t in MonotoneTriangles(self._n):
                 yield self.from_monotone_triangle(t)
         else:
             for c in ContreTableaux(self._n):
                 yield from_contre_tableau(c)
                 # This is broken!
                 # sage: A = AlternatingSignMatrices(3,
 use_monotone_triangles=False)
                 # sage: list(A)
                 #
 ---------------------------------------------------------------------------
                 # NameError                                 Traceback
 (most recent call last)
                 # ...
                 # NameError: global name 'from_contre_tableau' is not
 defined
                 # If this is really obsolete, the else-branch should be
                 # removed and the doc modified accordingly.
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/18208>
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