#13238: Counting, generating, and manipulating non-negative integer matrices
-----------------------------+----------------------------------------------
   Reporter:  saliola        |             Owner:  sage-combinat 
       Type:  enhancement    |            Status:  new           
   Priority:  major          |         Milestone:  sage-5.3      
  Component:  combinatorics  |          Keywords:  sd40, ncsf    
Work issues:                 |   Report Upstream:  N/A           
  Reviewers:  Chris Berg     |           Authors:  Franco Saliola
  Merged in:                 |      Dependencies:                
   Stopgaps:                 |  
-----------------------------+----------------------------------------------
 Counting, generating, and manipulating non-negative integer matrices with
 prescribed row sums and column sums.

 {{{
     An *integer matrix* `m` with column sums `c := (c_1,...,c_k)` and row
     sums `l := (l_1,...,l_n)` where `c_1+...+c_k` is equal to
 `l_1+...+l_n`,
     is a `n \times k` matrix `m = (m_{i,j})` such that
     `m_{1,j}+\dots+m_{n,j} = c_j`, for all `j` and
     `m_{i,1}+\dots+m_{i,k} = l_i`, for all `i`.

     EXAMPLES:

     There are `6` integer matrices with row sums `[3,2,2]` and column sums
     `[2,5]`::

         sage: from sage.combinat.integer_matrices import IntegerMatrices
         sage: IM = IntegerMatrices([3,2,2], [2,5]); IM
         Non-negative integer matrices with row sums [3, 2, 2] and column
 sums [2, 5]
         sage: IM.list()
         [
         [2 1]  [1 2]  [1 2]  [0 3]  [0 3]  [0 3]
         [0 2]  [1 1]  [0 2]  [2 0]  [1 1]  [0 2]
         [0 2], [0 2], [1 1], [0 2], [1 1], [2 0]
         ]
         sage: IM.cardinality()
         6
 }}}

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