powered by
Compute the symmetric square root of a positive definite matrix
msqrt(M)
A positive definite matrix
The square root matrix
The inverse of the square root matrix
Use spectral decomposition to compute the square root of a positive definite matrix
# NOT RUN { m=matrix(c(1,0.2,0.2,1),2,2) m1=msqrt(m) names(m1) # }
Run the code above in your browser using DataLab