powered by
Square root of a real or complex square matrix, when possible.
Eigen_sqrt(M)
a square matrix, real or complex
A square root of M.
M
See matrix square root.
# NOT RUN { # Rotation matrix over 60 degrees: M <- cbind(c(cos(pi/3), sin(pi/3)), c(-sin(pi/3), cos(pi/3))) # Its square root, the rotation matrix over 30 degrees: Eigen_sqrt(M) # }
Run the code above in your browser using DataLab