FUNCTION: Part2Mat - a planar representation of a given partition
CALLING SEQUENCE:
- Part2Mat(part)
- PART[Part2Mat](part)
-
PARAMETERS:
- part = a partition
SYNOPSIS:
- The Part2Mat function 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.
- The following option is allowed:
- 'alphabet' = l where l is a list of 1 or 2 components,
l[1] being the partition component, l[2]
the outer component.
- Whenever there is a conflict between the function name Part2Mat and
another name used in the same session, use the long form
PART['Part2Mat'].
EXAMPLES:
> with(PART):
> Part2Mat([4,2,2]);
[ 1 1 0 0 ]
[ ]
[ 1 1 0 0 ]
[ ]
[ 1 1 1 1 ]
> Part2Mat([4,2,2], 'alphabet'=[`#`,` `]);
[ # # ]
[ ]
[ # # ]
[ ]
[ # # # # ]
SEE ALSO: Part2Border Part2Conjugate Part2Diagonal ListPart