dot-bf_make_Lambda_block: Construct Full Block-Diagonal Penalty Matrix

.bf_make_Lambda_blockR Documentation

Construct Full Block-Diagonal Penalty Matrix

Description

Thin wrapper around .solver_build_lambda_block(). The block/backfitting solver keeps its original helper name so the surrounding code stays unchanged, while the shared implementation now lives in solver_utils.R.

Usage

.bf_make_Lambda_block(
  Lambda,
  K,
  unique_penalty_per_partition,
  L_partition_list
)

Arguments

Lambda

p_expansions \times p_expansions shared penalty matrix.

K

Integer; number of interior knots.

unique_penalty_per_partition

Logical.

L_partition_list

List of K+1 partition-specific penalty matrices (or zeros).

Value

A (p_expansions \cdot (K+1)) \times (p_expansions \cdot (K+1)) matrix.


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