A generalized canonical metric for optimization on the indefinite Stiefel manifold | Synapse