Algebraic formulation of simultaneous tensor-metric learning | Synapse