dmm: find relation of latent variables to matrices