How are the gradients/derivatives for the multivariate distributions (prim/mat/prob) calculated in stan math?

I can see that the univariate distributions (prim/scal/prob) uses operands_and_partials, and the functions have gradients defined in fwd and rev, but I can’t see how it’s done for the mat distributions.

Is there any doc/wiki that I should be looking at?