Calculate Trace of Matrix Product \(\text{trace}(\textbf{X}\textbf{U}\textbf{G}\textbf{X}^{T})\)
compute_trace_UGXX_wrapper(
G,
A,
GXX,
AGAInv,
nc,
nca,
K,
parallel,
cl,
chunk_size,
num_chunks,
rem_chunks
)
Trace value
List of G matrices (\(\textbf{G}\))
Constraint matrix (\(\textbf{A}\))
List of \(\textbf{G}\textbf{X}^{T}\textbf{X}\) products
Inverse of \(\textbf{A}^{T}\textbf{G}\textbf{A}\)
Number of columns
Number of constraint columns
Number of partitions minus 1 (\(K\))
Use parallel processing
Cluster object
Size of parallel chunks
Number of chunks
Remaining chunks
Computes \(\text{trace}(\textbf{X}\textbf{U}\textbf{G}\textbf{X}^{T})\) where \(\textbf{U} = \textbf{I} - \textbf{G}\textbf{A}(\textbf{A}^{T}\textbf{G}\textbf{A})^{-1}\textbf{A}^{T}\). Handles parallel computation by splitting into chunks.