powered by
This function Compute the squared Frobenius distance between two matrices.
FDist2(mX, mY)
a \(p \times r\) matrix where \(p \geq r\).
another \(p \times r\) matrix where \(p \geq r\).
the Frobenius distance.
The Frobenius distance between two matrices is defined to be $$d(X, Y) = \sqrt{ \mathrm{tr} \{ A' A \} }$$ where \(A = X - Y\).
The Frobenius distance is a possible measure of the distance between two points on the Stiefel manifold.
# NOT RUN { FDist2(runif_sm(1,4,2)[1,,], runif_sm(1,4,2)[1,,]) # }
Run the code above in your browser using DataLab