% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tune_Lambda.R
\name{.fit_get_B}
\alias{.fit_get_B}
\title{Call get_B During Penalty Tuning}
\usage{
.fit_get_B(G_list, Lambda, L_partition_list, env, return_G_getB, ...)
}
\arguments{
\item{G_list}{List; eigendecomposition results from \code{compute_G_eigen},
containing \code{Ghalf} and \code{GhalfInv}.}

\item{Lambda}{Matrix; current combined penalty matrix.}

\item{L_partition_list}{List; partition-specific penalty matrices.}

\item{env}{List; tuning environment from \code{.build_tuning_env}.}

\item{return_G_getB}{Logical; whether to return G inside the fit. Set to
TRUE within \code{.compute_gcvu} and \code{.compute_gcvu_gradient} so
that \code{B_list$G_list} carries the (possibly GLM-iterated) G matrices
required for the subsequent \code{AGAmult_wrapper} and trace computations.}

\item{...}{Additional arguments forwarded to the fitting routine.}
}
\description{
Internal wrapper that calls \code{get_B} with all arguments drawn from
the tuning environment \code{env}. Separated from \code{.fit_coefficients}
so the fallback path in \code{.fit_coefficients} is clean and does not
repeat the full argument list.

This helper is the point at which penalty tuning inherits the full
constrained solver described in \code{lgspline-details}, including GLM
reweighting, dense correlation whitening, and the structured-correlation
Woodbury acceleration when available. No additional tuning-specific
approximation is introduced here beyond whatever \code{get_B} itself uses.
}
\keyword{internal}
