Trace of the precision times a matrix, \(\operatorname{tr}(\boldsymbol{\Omega}(\boldsymbol{p})\mathbf{S})\)
Source:R/03_02_covariance_backends.R
sigma_trace_precision_times.RdComputes \(\operatorname{tr}(\boldsymbol{\Sigma}(\boldsymbol{p})^{-1} \mathbf{S})\) through solves only, never materialising the dense precision. This is the trace term that appears in the analytic gradient and Hessian.
Arguments
- backend
A
new_decovart_covariance()object.- p
Numeric proportions vector \(\boldsymbol{p}\in\mathbb{R}^{J}\).
- S
Numeric \(G\times G\) matrix (typically a cell-type covariance slice \(\boldsymbol{\Sigma}_j\)).