dot-build_lambda_block: Build Block-Diagonal Penalty Matrix

.build_lambda_blockR Documentation

Build Block-Diagonal Penalty Matrix

Description

Thin wrapper around .solver_build_lambda_block(). Keeping the local helper name preserves existing call sites in get_B() while centralizing the shared implementation in solver_utils.R.

Usage

.build_lambda_block(Lambda, K, unique_penalty_per_partition, L_partition_list)

Arguments

Lambda

Shared p \times p penalty matrix.

K

Integer; number of interior knots (K+1 partitions).

unique_penalty_per_partition

Logical; if TRUE, add L_partition_list[[k]] to the k-th diagonal block.

L_partition_list

List of partition-specific p \times p penalty matrices.

Value

A P \times P block-diagonal matrix where P = p \times (K+1).


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