#
# cprod(chi,theta,R) computes the inner product of class functions chi
#  and theta. Each class function should be a list (or array) of function
#  values on conjugacy classes ordered in the same way as class_rep(R).
# Note: This is the *real* (symmetric, not Hermitian) inner product.
#
`coxeter/cprod`:=proc(f,g,R) local i,sz;
  sz:=coxeter['class_size'](R);
  sz:=[seq(f[i]*g[i]*sz[i],i=1..nops(sz))];
  convert(sz,`+`)/coxeter['size'](R)
end:
#
save `coxeter/cprod`, cat(HomeLib,`/coxeter/cprod.m`);
read cat(HomeLib,`/help/coxeter/cprod`);
quit;

