Rcpp function to compute sum of rows and couple according to alphavec
.marginCombo(alphavec, mc)
alphavec
: vector of Dirichlet allocations (must be a vector of integers)mc
: a matrix of Archimedean vectors to share of dimension sum(alphavec)
a matrix of dimension n
by length(alphavec)
with combined data
Useful links