Fixed residual covariance for a GLS competitor
Source:R/03_01_first_generation_deconvolution.R
fixed_gls_covariance.RdEvaluates the convolution covariance \(\boldsymbol{\Sigma}(\boldsymbol{p})=\sum_j p_j^2\boldsymbol{\Sigma}_j\) at a known composition (default the barycentre \(p_j=1/J\)) and optionally keeps only the diagonal. That matrix does not depend on the unknown \(\boldsymbol{p}\) at fit time. Do not copy it into every slice of a DeCovarT tensor: that would yield \(\|p\|_2^2\boldsymbol{\Sigma}_{\mathrm{GLS}}\), which still depends on \(p\).