pub struct CompiledBlock {
pub t_lw: ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>,
pub anchor_correction: Option<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>>,
pub r_lw: Option<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>>,
}Expand description
One compiled block: reparam matrix V (t_lw) and the optional anchor
correction matrix M that downstream blocks consume as a first-class
anchor.
Fields§
§t_lw: ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>Orthogonal-complement reparam matrix V ∈ R^{p × p'} (right-selector).
anchor_correction: Option<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>>Residualised anchor correction M ∈ R^{d_raw × p'} at the compiled
width, expressed in raw cumulative-anchor-column coordinates: d_raw
is the sum of the raw column counts of every prior block, NOT the
(possibly smaller) count of kept anchor directions. The predict-time
row contribution is (C(x)·V − A_raw(x)·M)·β, where A_raw(x) is the
raw anchor evaluation. None for the first block in the ordering.
Synonymous with r_lw.
r_lw: Option<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>>Residualised reparam R_b = M_b · V_b — what the residualised row
evaluator uses to subtract the anchor portion. None for the first
block in the ordering (no anchor). Equal to anchor_correction.
Auto Trait Implementations§
impl Freeze for CompiledBlock
impl RefUnwindSafe for CompiledBlock
impl Send for CompiledBlock
impl Sync for CompiledBlock
impl Unpin for CompiledBlock
impl UnsafeUnpin for CompiledBlock
impl UnwindSafe for CompiledBlock
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> 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.