| Home | Trees | Indices | Help |
|---|
|
|
Alternating Sign Matrices
|
|||
| AlternatingSignMatrices_n | |||
| ContreTableaux_n | |||
| TruncatedStaircases_nlastcolumn | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Returns an alternating sign matrix from a contretableaux.
TESTS:
sage: import sage.combinat.alternating_sign_matrix as asm
sage: asm.from_contre_tableau([[1, 2, 3], [1, 2], [1]])
[0 0 1]
[0 1 0]
[1 0 0]
sage: asm.from_contre_tableau([[1, 2, 3], [2, 3], [3]])
[1 0 0]
[0 1 0]
[0 0 1]
|
Returns the combinatorial class of alternating sign matrices of
size n.
EXAMPLES:
sage: a2 = AlternatingSignMatrices(2); a2
Alternating sign matrices of size 2
sage: for a in a2: print a, "-
"
[0 1]
[1 0]
-
[1 0]
[0 1]
-
|
Returns the combinatorial class of contre tableaux of size n.
EXAMPLES:
sage: ct4 = ContreTableaux(4); ct4
Contre tableaux of size 4
sage: ct4.count()
42
sage: ct4.first()
[[1, 2, 3, 4], [1, 2, 3], [1, 2], [1]]
sage: ct4.last()
[[1, 2, 3, 4], [2, 3, 4], [3, 4], [4]]
sage: ct4.random_element()
[[1, 2, 3, 4], [1, 2, 3], [1, 3], [3]]
|
Returns a generator for all columbs of height height
properly filled from row 1 to i
TESTS:
sage: import sage.combinat.alternating_sign_matrix as asm
sage: list(asm._next_column_iterator([1], 0))
[[]]
sage: list(asm._next_column_iterator([1,5],1))
[[1], [2], [3], [4], [5]]
sage: list(asm._next_column_iterator([1,4,5],2))
[[1, 4], [1, 5], [2, 4], [2, 5], [3, 4], [3, 5], [4, 5]]
|
TESTS:
sage: import sage.combinat.alternating_sign_matrix as asm
sage: list(asm._previous_column_iterator([2,3], 3, 4))
[[1, 2, 3], [1, 2, 4], [1, 3, 4], [2, 3, 4]]
|
Returns the combinatorial class of truncated staircases
of size n with last column last_column.
EXAMPLES:
sage: t4 = TruncatedStaircases(4, [2,3]); t4
Truncated staircases of size 4 with last column [2, 3]
sage: t4.count()
4
sage: t4.first()
[[4, 3, 2, 1], [3, 2, 1], [3, 2]]
sage: t4.list()
[[[4, 3, 2, 1], [3, 2, 1], [3, 2]], [[4, 3, 2, 1], [4, 2, 1], [3, 2]], [[4, 3, 2, 1], [4, 3, 1], [3, 2]], [[4, 3, 2, 1], [4, 3, 2], [3, 2]]]
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0beta1 on Thu Jul 17 04:23:25 2008 | http://epydoc.sourceforge.net |