pub struct DeviceSaeFrameData {
pub ranks: Vec<usize>,
pub basis_sizes: Vec<usize>,
pub border_offsets: Vec<usize>,
pub frame_blocks: Vec<FactoredFrameGBlock>,
pub smooth_ranks: Vec<usize>,
pub row_htbeta: Vec<Vec<f64>>,
}Expand description
Frame-factored extension of DeviceSaePcgData (issue #1017/#1026,
frames-engaged device PCG). Present only when at least one atom is genuinely
frame-reduced (ranks[k] < p); absent (None) on the full-B path, where
the legacy G ⊗ I_p channel-identical kernel applies byte-for-byte.
On the frames path the β border is the FACTORED coordinate space C of width
Σ_k M_k·r_k, the data-fit β-Hessian is G_{ij} ⊗ W_{ij} (W_{ij}=U_iᵀU_j,
carried on frame_blocks), the smooth penalty is λ S_k ⊗ I_{r_k}
(smooth_blocks, reused — width r_k instead of p), and the per-row
reduced-Schur cross-block H_tβ^(i) is the DENSE (q_i × border_dim) slab
row_htbeta[i] (row-major) rather than the full-B factored L_i · J_β
gather (so a_phi/local_jac are unused on this path).
Fields§
§ranks: Vec<usize>Per-atom frame rank r_k (factored output width); r_k == p for an
un-framed atom riding the identity special case.
basis_sizes: Vec<usize>Per-atom basis size M_k.
border_offsets: Vec<usize>Per-atom factored-border offset off_C[k] (prefix sum of M_k·r_k),
length n_atoms. Atom k’s C_k block is [off_C[k] .. +M_k·r_k).
frame_blocks: Vec<FactoredFrameGBlock>Co-occurring (atom_i, atom_j) data-fit blocks g ⊗ w (w = U_iᵀU_j).
smooth_ranks: Vec<usize>Right-factor width (r_k) of each entry of the top-level
DeviceSaePcgData::smooth_blocks, in the SAME order. On the frames path
the smooth penalty is λ S_k ⊗ I_{r_k} so the block at
smooth_blocks[i].global_offset has identity width smooth_ranks[i]
(which equals ranks[atom]), NOT the ambient p.
row_htbeta: Vec<Vec<f64>>Per-row dense cross-block H_tβ^(i) as a row-major q_i × border_dim
buffer (q_i = row_dims[i]). Empty inner Vec for a 0-dim row.
Trait Implementations§
Source§impl Clone for DeviceSaeFrameData
impl Clone for DeviceSaeFrameData
Source§fn clone(&self) -> DeviceSaeFrameData
fn clone(&self) -> DeviceSaeFrameData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for DeviceSaeFrameData
impl RefUnwindSafe for DeviceSaeFrameData
impl Send for DeviceSaeFrameData
impl Sync for DeviceSaeFrameData
impl Unpin for DeviceSaeFrameData
impl UnsafeUnpin for DeviceSaeFrameData
impl UnwindSafe for DeviceSaeFrameData
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,
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.