Skip to main content

HessianAccumulate

Trait HessianAccumulate 

Source
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§

Source

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".

Implementors§

Source§

impl<const D: usize, I, U> HessianAccumulate<D, I, U> for TensorRank2SparseVec2D<D, I, I, U>

Source§

impl<const D: usize, I, U> HessianAccumulate<D, I, U> for TensorRank2SparseVec2DSymmetric<D, I, I, U>