mgf function

New generic for mgf of matrix distributions