`coxeter/text/cprod` := TEXT(`    `,
`FUNCTION:  cprod - inner product of characters or class functions`,`    `,
`CALLING SEQUENCE:  cprod(f,g,R); `,`    `,
`PARAMETERS:  R  = a root system data structure`,
`            f,g = lists representing class functions on W(R)`,`   `,
`SYNOPSIS:   `,
`  A character or class function on W(R) is represented as a list of values`,
`  [a_1,...,a_l], where a_i is the function value on an element in the i-th`,
`  conjugacy class. A consistent ordering of the conjugacy classes is used`,
`  by each of the functions class_rep, class_size, cprod, induce, irr_chars,`,
`  perm_char, and restrict. In particular, the value at the identity element`,
`  (the degree, in the case of characters) is always listed first.`,`   `,
`  If f and g are two such class functions, cprod(f,g,R) computes the`,
`  standard (real) inner product of f and g; namely, the sum over i of`,
`  (1/m)*f[i]*g[i]*N_i, where N_i is the size of the i-th conjugacy class`,
`  and m=size(R). Note that this is not a complex Hermitian inner product.`,
`   `,
`  The irreducible characters of W(R) are orthonormal with respect to cprod.`,
`   `,
`  For a description of root system data structures, see coxeter[structure].`,
`   `,`EXAMPLES:   `,`  chi:=perm_char([2,3],B3);`,
`  # compute the number of (A2,A2)-double cosets in B3:`,
`  cprod(chi,chi,B3);                       yields              4`,
`  # compute the multiplicities of irreducible characters in chi:`,
`  map(cprod,irr_chars(B3),chi,B3);         yields    [1,0,0,1,0,1,0,1,0,0]`,
`    `,
`SEE ALSO:  class_rep, class_size, perm_char, induce, irr_chars, restrict,`,
`           size, structure`):

if `+`(0)=0 then # Maple V.4 or later
  print(INTERFACE_HELP(insert, topic=`coxeter/cprod`,
  helpfile=HomeLib, text=`coxeter/text/cprod`))
elif ceil(0)=0 then # Maple V.2 or V.3
  `help/coxeter/text/cprod`:=`coxeter/text/cprod`:
  save `help/coxeter/text/cprod`, cat(HomeLib,`/help/coxeter/text/cprod.m`);
fi:
