Matrix logarithm (source code)

= Matrix logarithm
{title2=$\log A$}
{wiki}

For a positive-definite <Hermitian matrix> with <spectral decomposition> $A=U\operatorname{diag}(\lambda_j)U^*$, the matrix logarithm is $\log A=U\operatorname{diag}(\log\lambda_j)U^*$. More generally it is a branch of the inverse of the <matrix exponential> when such a branch exists.