pub trait LinearizationMode: 'static {
type Jacobian: Send + Sync;
type Hessian: Send + Sync;
}Expand description
Marker trait that defines the matrix types for a linear algebra path.
Enables zero-cost static dispatch between sparse and dense linear algebra
backends. Optimizers are generic over LinearizationMode, so the compiler
generates one specialization per concrete mode at no runtime cost.
Two implementations are provided:
SparseMode: Jacobian and Hessian areSparseColMat<usize, f64>DenseMode: Jacobian and Hessian areMat<f64>