Trait UserDualStore

Source
pub trait UserDualStore: Clone {
    // Required method
    fn linear_combination<'a, 'b>(
        &'b self,
        alpha: f64,
        out_duals: &'a Self,
    ) -> Cow<'a, Self>;
}
Expand description

Trait to implement for the dual storage

Required Methods§

Source

fn linear_combination<'a, 'b>( &'b self, alpha: f64, out_duals: &'a Self, ) -> Cow<'a, Self>

Perform the linear combination following Wentges rule Return the combined result as Cow. If alpha <= 0, return borrowed cow

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§