Expand description
Exact supported domain for logarithmic penalty strengths.
Every smoothing precision has the form lambda = exp(rho). The value,
gradient, and Hessian with respect to rho agree only while that
exponentiation is evaluated exactly: clamping rho or flooring/ceilinging
lambda creates a constant tail with a fictitious nonzero derivative.
The inclusive [-700, 700] interval deliberately stays inside binary64’s
finite, normal exponential range: its lower face avoids subnormal-strength
arithmetic and its upper face leaves overflow guard margin. It is a solver
policy domain, not a claim about the widest representable binary64 input.
This module owns the single domain used by all penalty implementations.
Structs§
- Indexed
LogStrength Domain Error - Coordinate-aware failure returned when validating a vector of logarithmic strengths.
- LogStrength
Domain Error - A logarithmic strength is outside the exact supported solver contract.
- Physical
Strength Domain Error
Constants§
- LOG_
STRENGTH_ MAX - Largest supported logarithmic strength (inclusive).
- LOG_
STRENGTH_ MIN - Smallest supported logarithmic strength (inclusive).
Functions§
- checked_
exp_ log_ strength - Exponentiate a logarithmic strength on the exact closed solver domain.
- checked_
exp_ log_ strengths - Convert a complete vector atomically on the exact supported domain.
- checked_
log_ strength - Recover a canonical logarithmic coordinate without flooring or ceilinging a physical strength.
- log_
gradient_ resolution ln √ε: the log of the relative resolution of a criterion gradient carried through an inverse whose conditioning is the strength ratio itself. Per direction the ρ-gradient is the effective degrees of freedomγ/(γ+λ)through(H+λS)⁻¹, whose condition in that direction isλ/γonce the penalty dominates; a quantity through an inverse of conditionκholds relative errorεκ, and value and error cross atλ/γ = 1/√ε. Every derived ρ-domain edge (#2812) is this many e-folds from the spectrum.- precision_
box - The precision box
[ln √ε, ln(1/√ε)]around unit strength: the domain of a coordinate whose penalty geometry cannot be projected, and the envelope a seed is placed in before the domain is derived. - validate_
log_ strength - Validate a logarithmic strength without changing it.
- validate_
log_ strengths - Validate a complete vector, reporting the deterministic smallest invalid coordinate before any caller-visible computation begins.