R/RcppExports.R
procrustes_mat.Rd
Solves the orthogonal procrustes problem R = argmin ||R*A - B||_F where R is an orthonormal matrix.
procrustes_mat(A, B)
Input matrices with same dimensions.
The orthonormal matrix R that best maps A to B.