Skip to main content

RidgeBackend

Trait RidgeBackend 

Source
pub trait RidgeBackend:
    Debug
    + Send
    + Sync {
    // Required method
    fn factor<'a>(
        &'a self,
        ata: &'a [f64],
        atb: &'a [f64],
        cancel: &CancelToken,
    ) -> Result<Box<dyn ShiftedSystem + 'a>, AccelerationError>;

    // Provided method
    fn minimum_dimension(&self) -> usize { ... }
}
Expand description

A factory can be shared by input workers. Its prepared objects cannot.

Required Methods§

Source

fn factor<'a>( &'a self, ata: &'a [f64], atb: &'a [f64], cancel: &CancelToken, ) -> Result<Box<dyn ShiftedSystem + 'a>, AccelerationError>

Provided Methods§

Source

fn minimum_dimension(&self) -> usize

Auto may keep small systems on the CPU; an explicit GPU overrides this.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§