Square Root Matrix
Compute the symmetric square root of a positive definite matrix
msqrt(M)
M
: A positive definite matrixUse spectral decomposition to compute the square root of a positive definite matrix
mtxsqrt: The square root matrix
invsqrt: The inverse of the square root matrix
Ruey S. Tsay
This command is used in some of the MTS functions.
m=matrix(c(1,0.2,0.2,1),2,2) m1=msqrt(m) names(m1)
Useful links