For a matrix A its square root is such a matrix B which satisfies A=BB.
Computation is done using spectral decomposition. When calculating the square roots of eigenvalues, always a root with positive real part and a sign of the imaginary part the same as the sign of the imaginary eigenvalue part is taken.
MatSqrt(A)
Arguments
A: either a numeric vector in which case square roots of each element of A is returned or a squared matrix.