Skip to main content

RowHtbetaTransposeMatvec

Type Alias RowHtbetaTransposeMatvec 

Source
pub type RowHtbetaTransposeMatvec = Arc<dyn for<'a> Fn(usize, ArrayView1<'a, f64>, &mut Array1<f64>) + Send + Sync>;
Expand description

Row-local matrix-free transpose multiply out += H_βt^(i) · v (length K).

This is the adjoint of RowHtbetaMatvec: it scatters a per-row latent vector v (length d_i) back into the shared β gradient, adding its contribution to out. For the SAE Kronecker form this is the sparse scatter_jbeta_t over the row’s active atoms — O(m_i · p) per row, the per-row sparse apply that replaces the O(K) column-probe in the GPU and streaming Schur matvec.

Aliased Type§

pub struct RowHtbetaTransposeMatvec { /* private fields */ }