matrix.sqrt | R Documentation |
Compute the square root of a matrix
matrix.sqrt(A)
A |
a symmetric semi-definite positive matrix |
A symmetric matrix, say B, such as B^t*B=A
For internal use.
Clecio Ferreira, Diego Gallardo and Camila Zeller.
A<-matrix(c(1,2,2,5),nrow=2)
B<-matrix.sqrt(A)
##Recovering A
t(B)%*%B
A
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.