1function B = moment_jointtrans(A, edge)
2% B = moment_jointtrans(A, edge)
4% Applies the conversion matrix of one edge of the house of moments along every
5% dimension of a joint moment array. This
is the separable (Kronecker product)
6%
form shared by all the joint conversions except the cumulant and the central
10% A: joint moment array of size (n_1+1)x...x(n_d+1)
11% edge: edge label accepted by moment_housematrix
14% B: array of the same size as A holding the converted joint moments
17% f = moment_jointtrans(m, 'factorial_from_raw');
20% A. Heindl and A. van de Liefvoort. Moment conversions for discrete
21% distributions. PMCCS, 2003.
23sz = moment_tensorsize(A);
26 B = moment_tensortrans(B, moment_housematrix(edge, sz(mode)-1), mode);