This function computes the matrix square root of a square matrix.
The sqrt of a matrix \(A\) is \(S\) such that \(A = S S\).
Usage
sqrtm(x)
Value
A matrix ‘as x’ with the matrix sqrt of x.
Arguments
x
a square matrix.
Author
Michael Stadelmann wrote the first version.
Details
The matrix square root \(S\) of \(M\), \(S = sqrtm(M)\) is
defined as one (the “principal”) \(S\) such that
\(S S = S^2 = M\), (in R, all.equal( S %*% S , M )).
The method works from the Schur decomposition.
References
Higham, N.~J. (2008).
Functions of Matrices: Theory and Computation;
Society for Industrial and Applied Mathematics, Philadelphia, PA, USA.