AlternatingSignMatrices
The alternating sign matrices — entries in , every row and column summing to 1 with alternating nonzero signs — as a lazy indexed family.
Wikipedia
Alternating sign matrixMathWorldAlternatingSignMatrixWikidataQ3848436OEISA005130SageMathAlternatingSignMatrices(n)AlternatingSignMatrices(size)the ASMs of size size × size.Typed signatures
| Type | Package | Applies |
|---|---|---|
(integer<0..>) -> indexed_collection<list<list<integer>>> | combinatorics | always |
Details
- A lazy indexed collection; the count is the ASM number (the Robbins numbers, OEIS A005130) — .
- Each element is the matrix's rows; every row and column sums to 1, and every partial sum reading a row or column from its start lies in — the alternating-sign condition.
- The permutation matrices are exactly the ASMs with no entry; for every , with equality only at .