Formulation and Integration of Learning Differential Equations on the Stiefel Manifold