pub trait HessianAccumulate<const D: usize, const I: usize> {
// Required method
fn accumulate(&mut self, a: usize, b: usize, block: TensorRank2<D, I, I>);
}Expand description
Accumulates rank-2 blocks into a sparse Hessian-like structure.
Symmetric-safe: the caller guarantees block at (a, b) equals the
transpose of the (b, a) contribution, so implementors may store or
mirror as they see fit.