powered by
Returns the unique symmetric positive definite square root matrix of a provided symmetric positive definite matrix.
mhalf(M)
A symmetric positive definite matrix.
The unique symmetric positive definite matrix \(X\) such that \(XX = M\).
# NOT RUN { Y <- matrix(stats::rnorm(4), nrow = 2) M <- Y %*% t(Y) X <- mhalf(M) X identical(M, X %*% X) # }
Run the code above in your browser using DataLab