Compute Gram Matrix for Block Diagonal Structure
compute_gram_block_diagonal(
list_in,
parallel,
cl,
chunk_size,
num_chunks,
rem_chunks
)
List of Gram matrices (\(\textbf{X}^{T}\textbf{X}\)) for each block
List of matrices
Use parallel processing
Cluster object
Chunk size for parallel
Number of chunks
Remaining chunks
For a list of matrices, will compute the gram matrix of each element of the list.