pgf function

New generic for pgf of matrix distributions