Compute Eigenvalues and Related Matrices for G
compute_G_eigen(
X_gram,
Lambda,
K,
parallel,
cl,
chunk_size,
num_chunks,
rem_chunks,
family,
unique_penalty_per_partition,
L_partition_list,
keep_G = TRUE,
shur_corrections
)
List containing combinations of:
G - Full \(\textbf{G}\) matrix (if keep_G=TRUE
)
Ghalf - \(\textbf{G}^{1/2}\) matrix
GhalfInv - \(\textbf{G}^{-1/2}\) matrix (for non-identity links)
Gram matrix list (\(\textbf{X}^{T}\textbf{X}\))
Penalty matrix (\(\boldsymbol{\Lambda}\))
Number of partitions minus 1 (\(K\))
Use parallel processing
Cluster object
Chunk size for parallel
Number of chunks
Remaining chunks
GLM family
Use partition penalties
Partition penalty list (\(\textbf{L}_\text{partition\_list}\))
Return full G matrix (\(\textbf{G}\))
List of Shur complement corrections (\(\textbf{S}\))
Computes \(\textbf{G}\), \(\textbf{G}^{1/2}\) and \(\textbf{G}^{-1/2}\) matrices via eigendecomposition of \(\textbf{X}^{T}\textbf{X} + \boldsymbol{\Lambda}_\text{effective} + \textbf{S}\). Handles partition-specific penalties and parallel processing. For non-identity link functions, also returns \(\textbf{G}^{-1/2}\).