The regular representation is defined as follows: dim D=h=order of G.
(D(gk))ij= 1 if gkgj=gi, 0 else. D(e) = identity.
X(g) = h if g=e, 0 else.
D=direct sum(i,niDi)