par = partitions(S,L)Given a set S and a partition L=\{l_1\geq l_2\geq\cdots\}, the method returns the list of set-partitions of S of type L, i.e. ways of writing S=S_1\cup S_2\cup\cdots with the S_i pairwise disjoint and |S_i|=l_i. The blocks come out as an unordered collection of sets.
|
|
Changing the shape L changes the cycle type. Two blocks of size 2 and one fixed point on five points is the number of permutations of cycle type (2,2,1) divided by the size of the corresponding centralizer:
|
|
Passing a Partition is equivalent to passing the underlying list; counting block-partitions of shape (3,1) recovers 4 \choose 1:
|
|
Supplying a single-block shape returns a singleton list: the only set-partition of type (n) is S itself.
|
The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/SchurRings.m2:6764:0.