marginal function

New generic for the marginals of multivariate matrix distributions