muEC::PART::Part2Mat – a planar representation of a given partition

Draw the Ferrer's diagram of a partition.

→ Examples

Call:

muEC::PART::Part2Mat(part, alphabet = l)

Parameters:

part

a partition

Options:

alphabet = l

math is the partition component, math is the outer component

Related Functions:

muEC::PART::ListPart, muEC::PART::Part2Border, muEC::PART::Part2Conjugate, muEC::PART::Part2Diagonal, muEC::TYP::IsPart

Details:

The muEC::PART::Part2Matfunction gives a planar representation of a partition, (called diagram of the partition) in the Cartesian plane.

A partition is a decreasing list of positive integers.

Example 1:

muEC::PART::Part2Mat( [4,2,2] );

math

print( Unquoted, muEC::PART::Part2Mat( [4,2,2], alphabet=["#",""] ) ):

+-            -+

|  #, #,  ,    |

|              |

|  #, #,  ,    |

|              |

|  #, #, #, #  |

+-            -+