msqrt | R Documentation |
Compute the symmetric square root of a positive definite matrix
msqrt(M)
M |
A positive definite matrix |
Use 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 |
This command is used in some of the MTS functions.
Ruey S. Tsay
m=matrix(c(1,0.2,0.2,1),2,2) m1=msqrt(m) names(m1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.