Skip to main content

SharedFixedDriftDerivFn

Type Alias SharedFixedDriftDerivFn 

Source
pub type SharedFixedDriftDerivFn = Arc<dyn Fn(usize, &Array1<f64>) -> Option<DriftDerivResult> + Send + Sync>;
Expand description

Shared-ownership form of FixedDriftDerivFn used for InnerSolution storage, so the same M_i[u] = D_β B_i[u] callback can be cloned into a derived (tangent-projected) solution. Construction sites still hand back a Box (FixedDriftDerivFn); storage re-tags it via Arc::from (free). The drift M is a p-space matrix that every consumer contracts through the (tangent-wrapped) Hessian operator’s trace_logdet_*, so the clone-through is exact under projection.

Aliased Type§

pub struct SharedFixedDriftDerivFn { /* private fields */ }