Check if the input matrix is a rotation matrix
util.rotmat(ndim, rotmat)
ndim
Dimension of the matrix
rotmat
Input matrix
is.ok 1 if the matrix is a rotation matrix