Compute log second marginal and transported feature means (dense)
Source:R/RcppExports.R
uot_kl_logpi2_meanF_dense_cpp.RdGiven translation-invariant dual potentials (fbar,gbar), compute the log of the second marginal (column sums) of the entropic UOT coupling and the feature barycentric projection means per target node.
Arguments
- cost
Dense cost matrix (n x m).
- alpha
Source masses (length n).
- beta
Target masses (length m).
- fbar
Translation-invariant source potential (length n).
- gbar
Translation-invariant target potential (length m).
- epsilon
Entropic regularization parameter (> 0).
- F
Optional source features (n x D). If provided, returns mean features.