Get the distance between subspaces defined as the ranges of A and B
subspace_dist(A, B, r)A nonnegative scalar giving the cosine of the first principle angle between the two subspaces.
A matrix or const_C object.
Another matrix with the same number of rows as A, or const_C object of the same dimension.
A scalar integer, the dimension of the subspace to compare (only necessary if either A or B is a const_C object).