compute_dGhalf: Compute Eigen-Based Square-Root Factors for...

View source: R/HelperFunctions.R

compute_dGhalfR Documentation

Compute Eigen-Based Square-Root Factors for d\textbf{G}/d\lambda

Description

Applies an eigendecomposition-based matrix square root to each partition-wise d\textbf{G}/d\lambda matrix after replacing NA entries with 0 and treating all-0 inputs with an identity fallback.

Usage

compute_dGhalf(
  dG_dlambda,
  p_expansions,
  K,
  parallel,
  cl,
  chunk_size,
  num_chunks,
  rem_chunks
)

Arguments

dG_dlambda

List of p \times p d\textbf{G}/d\lambda matrices by partition

p_expansions

Integer; number of columns per partition

K

Integer; number of interior knots (K)

parallel, cl, chunk_size, num_chunks, rem_chunks

Parallel computation parameters

Value

List of p \times p eigen-based square-root factors derived from the partition-wise d\textbf{G}/d\lambda matrices


lgspline documentation built on May 8, 2026, 5:07 p.m.