Skip to content

BlockSizePartition ​

The partition of n a set partition's block sizes form, largest first.

BlockSizePartition(SetPartition)The partition of n a set partition's block sizes form, largest first.
Typed signatures
TypePackageApplies
(set_partition) -> integer_partitioncombinatoricsalways

Domain: Combinatorial maps

Details
  • Takes a SetPartition and returns a IntegerPartition — a typed map, so a wrong carrier is a type error rather than a wrong answer.
  • Lossy: which elements share a block is forgotten, so it is not a constructor overload.

Examples

Basic #

the set partition {1,3}∣{2}∣{4}\{1,3\} \mid \{2\} \mid \{4\}

live ↗
InBlockSizePartition(SetPartition⁡([[1,3],[2],[4]]))\mathrm{BlockSizePartition}({\operatorname{SetPartition}}([[1, 3], [2], [4]]))OutIntegerPartition⁡([2,1,1]){\operatorname{IntegerPartition}}([2, 1, 1])
About
Examples1
CrosswalkFindStat