Skip to contents

Solves the orthogonal procrustes problem R = argmin ||RA - B||_F where R is an orthonormal matrix. Then computes the frobenius inner product <RA, B> = <R, B*A^T>, which is maximized by R.

Usage

procrustes_inner(A, B)

Arguments

A, B

Input matrices with same dimensions.

Value

The procrustes inner product <R*A, B> between A and B.