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

\begin{Mhelppage}{Diagonal2Part}{V. Prosper}%
  \begin{MInfo}
    \eng{partition from a list of diagonals}
  \end{MInfo}
  
\begin{MCalls}
  \Mcall{diago}
\end{MCalls}

\begin{MParameters}
  \param{diago}
  \eng{a list with two components} 
\end{MParameters}

\begin{MIntro}
  \eng{

The {\Mthis} function takes a list \Mex{[v,pos]} as argument, where \Mex{v} is
a list (lengths of the successive diagonals of the diagram of part)
and \Mex{pos} an integer (position of the main diagonal), and returns
the partition \Mex{part} such that \Mex{Part2Diagonal(part) = [v,pos]}.
 
}
\end{MIntro}

\begin{MExample}{ex1}
\begin{Mexin}
muEC::PART::Diagonal2Part( [[1,1,2,2,3,3,2,1,1,1], 5] );
\end{Mexin}
\begin{Mexout}
                        [6, 4, 4, 2, 1]
\end{Mexout}
\end{MExample}

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