Learn R Programming

lgspline (version 0.2.0)

compute_dGhalf: Compute Matrix Square Root Derivative

Description

Calculates \(d\textbf{G}^{1/2}/d\lambda\) matrices for each partition using eigendecomposition. Follows similar approach to compute_G_eigen() but for matrix derivatives.

Usage

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

Value

List of \(nc \times nc\) matrices containing \(d\textbf{G}_k^{1/2}/d\lambda\) for each partition k

Arguments

dG_dlambda

List of \(nc \times nc\) \(d\textbf{G}/d\lambda\) matrices by partition

nc

Integer; number of columns per partition

K

Integer; number of interior knots (\(K\))

parallel, cl, chunk_size, num_chunks, rem_chunks

Parallel computation parameters