cr.sparse.la.subspaces.subspace_distance

cr.sparse.la.subspaces.subspace_distance(A, B)[source]

Returns the Grassmannian distance between two subspaces

Parameters
Returns

Distance between the two subspaces

Return type

(float)

the Grassmannian is a space that parameterizes all k dimensional linear subspaces of a vector space V. A metric can be defined over this space. We can use this metric to compute the distance between two subspaces.