Ticket #5781 (closed defect: fixed)

Opened 11 months ago

Last modified 11 months ago

[with patch, positive review] The empty standard tableau exists ! :-)

Reported by: hivert Owned by: hivert
Priority: major Milestone: sage-3.4.1
Component: combinatorics Keywords: tableau
Cc: sage-combinat Author(s):
Report Upstream: Reviewer(s):
Merged in: Work issues:

Description

Before my patch:

sage: [] in StandardTableaux()
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)

/home/averell/.sage/temp/tomahawk/19026/_home_averell__sage_init_sage_0.py in <module>()

/usr/local/sage/sage/local/lib/python2.5/site-packages/sage/combinat/tableau.pyc in __contains__(self, x)
   1740             fillings += row
   1741         fillings.sort()
-> 1742         if fillings != range(1, max(fillings)+1):
   1743             return False
   1744

ValueError: max() arg is an empty sequence

Now:

sage: [] in StandardTableaux()
True

Florent, the specialist of the empty objects !!!

Attachments

empty_standard_tableau-fh-final.patch Download (0.8 KB) - added by hivert 11 months ago.

Change History

Changed 11 months ago by hivert

Changed 11 months ago by hivert

  • status changed from new to assigned

Changed 11 months ago by nthiery

  • summary changed from [with patch, need review] The empty standard tableau exists ! :-) to [with patch, positive review] The empty standard tableau exists ! :-)

Changed 11 months ago by mabshoff

  • status changed from assigned to closed
  • resolution set to fixed

Merged in Sage 3.4.1.rc3.

Cheers,

Michael

Note: See TracTickets for help on using tickets.