pub struct ActivePenaltyInfo {
pub source: PenaltySource,
pub original_index: usize,
pub effective_rank: usize,
pub normalization_scale: f64,
pub kronecker_factors: Option<Vec<Array2<f64>>>,
pub structural_null_frame: Option<Array2<f64>>,
}Expand description
Metadata for one retained penalty coordinate.
This type is active-only by construction. In particular it has no
active flag or optional drop reason: those fields allowed a metadata
position to exist without a corresponding matrix and made positional
indexing silently wrong after an earlier candidate was dropped.
Fields§
§source: PenaltySource§original_index: usize§effective_rank: usize§normalization_scale: f64§kronecker_factors: Option<Vec<Array2<f64>>>Kronecker factors preserved from tensor penalty construction. When present, spectral decomposition can use per-factor eigendecomposition.
structural_null_frame: Option<Array2<f64>>Structural null frame carried from the candidate’s
ConstructiveQuadratic (see
ConstructiveQuadratic::with_structural_null_frame): the declared
null space of the seminorm this penalty represents, in the penalty’s
own coefficient chart. Downstream rebuilds
(rebuild_metric_consistent_ridge at the term-collection chokepoint)
re-attach it so the double-penalty topology stays a carried theorem
through every chart instead of a per-chart rank measurement (#2445).
Runtime-only, like kronecker_factors: a frozen replay rebuilds it
from the basis factory, which is the single source.
Trait Implementations§
Source§impl Clone for ActivePenaltyInfo
impl Clone for ActivePenaltyInfo
Source§fn clone(&self) -> ActivePenaltyInfo
fn clone(&self) -> ActivePenaltyInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ActivePenaltyInfo
impl Debug for ActivePenaltyInfo
Source§impl<'de> Deserialize<'de> for ActivePenaltyInfo
impl<'de> Deserialize<'de> for ActivePenaltyInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for ActivePenaltyInfo
impl RefUnwindSafe for ActivePenaltyInfo
impl Send for ActivePenaltyInfo
impl Sync for ActivePenaltyInfo
impl Unpin for ActivePenaltyInfo
impl UnsafeUnpin for ActivePenaltyInfo
impl UnwindSafe for ActivePenaltyInfo
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.