Decomposing a Cartan matrix as the product of a diagonal and symmetric positive definite matrix

142 Views Asked by At

I would like to decompose a Cartan matrix $K$ as the product of $D$ and $S$ with $D$ being a diagonal matrix with positive diagonal entries and $S$ a symmetric positive definite matrix. Is there a general algorithm for this? How about a toolbox in say MATLAB to do the work?