Matrix square root
(Quaternion overloading of standard MATLAB® function)
Y = sqrtm(X)
sqrtm(X) computes the matrix square root of a quaternion matrix. The algorithm used is based on calling the MATLAB® sqrtm function on an adjoint matrix, and is therefore not accurate for larger matrices. The accuracy may be checked by squaring the result using ^.