% $Date: 2003/09/15 16:37:45 $ $Author: nthiery $ $Revision: 1.1.1.1 $

\begin{Mhelppage}{Part2Mat}{V. Prosper}
  \begin{MInfo}
    \eng{a planar representation of a given partition}
  \end{MInfo}

  \MDeclareOption{\alphabet}{alphabet}

  \begin{MCalls}
    \Mcall{part\Mopt{,\alphabet=l}}
  \end{MCalls}

  \begin{MParameters}
    \param{part}
    \eng{a partition}
  \end{MParameters}
  \begin{MOptions}
    \option{\alphabet=l}
    \eng{\Mmath{l[1]}{l_1} is the partition
      component, \Mmath{l[2]}{l_2} is the outer component}
  \end{MOptions}

  \begin{MIntro}
    \eng{The \Mthis 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.}
  \end{MIntro}
 
\begin{MExample}{ex1}
\begin{Mexin}
muEC::PART::Part2Mat( [4,2,2] );
\end{Mexin}
\begin{Mexout}
                       +-            -+
                       |  1, 1, 0, 0  |
                       |              |
                       |  1, 1, 0, 0  |
                       |              |
                       |  1, 1, 1, 1  |
                       +-            -+
\end{Mexout}
\begin{Mexin}
print( Unquoted, muEC::PART::Part2Mat( [4,2,2], alphabet=["#",""] ) ):
\end{Mexin}
\begin{Mexout}
                       +-            -+
                       |  #, #,  ,    |
                       |              |
                       |  #, #,  ,    |
                       |              |
                       |  #, #, #, #  |
                       +-            -+
\end{Mexout}
\end{MExample}

\MRelatedFunctions{Part2Border,Part2Conjugate,Part2Diagonal,ListPart,TYP::IsPart}
\end{Mhelppage}
