#8438: Construction of a skew partition from its row and column lengths
------------------------------+---------------------------------------------
   Reporter:  hivert          |       Owner:  hivert         
       Type:  enhancement     |      Status:  needs_work     
   Priority:  major           |   Milestone:  sage-4.3.4     
  Component:  combinatorics   |    Keywords:  skew partitions
     Author:  Florent Hivert  |    Upstream:  N/A            
   Reviewer:                  |      Merged:                 
Work_issues:                  |  
------------------------------+---------------------------------------------
Changes (by nborie):

 * cc: nborie (added)
  * status:  needs_review => needs_work


Comment:

 Can you improve that :

 {{{
 sage: S = SkewPartition(([6],[6]))
 sage: S.column_lengths()
 [0, 0, 0, 0, 0, 0]
 sage: S.row_lengths()
 [0]
 sage: from_row_and_column_length([0],[0,0,0,0,0,0])
 [[6], [6]] #perfect

 sage: S = SkewPartition(([1,1,1,1,1,1],[1,1,1,1,1,1]))
 sage: S.column_lengths()
 [0]
 sage: S.row_lengths()
 [0, 0, 0, 0, 0, 0]
 sage: from_row_and_column_length([0,0,0,0,0,0],[0])
 ---------------------------------------------------------------------------
 ValueError                                Traceback (most recent call
 last)
 ...
 ...
 ValueError: invalid skew partition
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8438#comment:2>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to