0
$\begingroup$

Consider a real positive semi-definite matrix $M$, it is known that there exists a unique real positive semi-definite matrix $S$ such that $S^2=M$ and there is also a unique real lower-triangular matrix $C$ with non-negative diagonal such that $CC^*=M$.

Can we conclude that $C$ and $M$ coincide in the diagonal? It seems to be true for all the matrices I have tried.

  • 0
    One of the matrices is the cholesky matrix and the other is the principal square root.2017-01-27
  • 0
    Per [this question](http://math.stackexchange.com/questions/2077581/consider-a-symmetric-positive-definite-n-times-n-matrix-ahow-to-show-then/2077586#2077586), the diagonal entries of $C$ will always have the form $$ C_{kk} = \sqrt{\frac{\det M_k}{\det M_{k-1}}} $$ I don't believe that this is true for $S$.2017-01-27
  • 0
    dang it, I just need a program to calculate the square root of a matrix in c++ , but I only need the diagonal. But I haven't been able to find a package that handles this in the "semi-definite" case ;(2017-01-27
  • 0
    Armadillo can do it, but it crashes in the semi-definite case, it's a huge bummer ;'(2017-01-27
  • 0
    Well, if you can find the kernel of $A$, then you can reduce the problem to finding the square root of a smaller positive definite matrix.2017-01-27
  • 0
    I found a way to get it without using that. I just needed the "eigenvalue/eigenvector" decomposition provided by armadillo.2017-01-27
  • 0
    I also had to change all of the eigenvalues that were really small but negative due to approximation errors to zero.2017-01-27

1 Answers 1

2

The statement fails to hold for $$ M = \frac 13\pmatrix{1&1&1\\1&1&1\\1&1&1} \implies \\ C = \frac 1{\sqrt 3}\pmatrix{1&0&0\\1&0&0\\1&0&0}, \quad S = M $$ I'm not sure about the $2 \times 2$ case, specifically. I would think that the statement also fails for $M + \epsilon I$, with $\epsilon > 0$ sufficiently small.