cr.nimble.subspaces.subspace_distance

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

Returns the Grassmannian distance between two subspaces

Parameters
  • A (jax.numpy.ndarray) – ONB for the first subspace

  • B (jax.numpy.ndarray) – ONB for the second subspace

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.