orthogonal_procrustes
- scipy.linalg.orthogonal_procrustes(A, B, check_finite=True)
Compute the matrix solution of the orthogonal (or unitary) Procrustes problem.
Given matrices A and B of the same shape, find an orthogonal (or unitary in the case of complex input) matrix R that most closely maps A to B using the algorithm given in [1].
The documentation is written assuming array arguments are of specified “core” shapes. However, array argument(s) of this function may have additional “batch” dimensions prepended to the core shape. In this case, the array is treated as a batch of lower-dimensional slices; see Batched Linear Operations for details. Note that calls with zero-size batches are unsupported and will raise a .