pub trait HessianAccumulate<const D: usize, I, U = Dimensionless> {
// Required method
fn accumulate(&mut self, a: usize, b: usize, block: TensorRank2<D, I, I, U>);
}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.
Required Methods§
fn accumulate(&mut self, a: usize, b: usize, block: TensorRank2<D, I, I, U>)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".