lax::least_squares

Trait LeastSquaresWorkImpl

Source
pub trait LeastSquaresWorkImpl: Sized {
    type Elem: Scalar;

    // Required methods
    fn new(a_layout: MatrixLayout, b_layout: MatrixLayout) -> Result<Self>;
    fn calc(
        &mut self,
        a: &mut [Self::Elem],
        b: &mut [Self::Elem],
    ) -> Result<LeastSquaresRef<'_, Self::Elem>>;
    fn eval(
        self,
        a: &mut [Self::Elem],
        b: &mut [Self::Elem],
    ) -> Result<LeastSquaresOwned<Self::Elem>>;
}

Required Associated Types§

Source

type Elem: Scalar

Required Methods§

Source

fn new(a_layout: MatrixLayout, b_layout: MatrixLayout) -> Result<Self>

Source

fn calc( &mut self, a: &mut [Self::Elem], b: &mut [Self::Elem], ) -> Result<LeastSquaresRef<'_, Self::Elem>>

Source

fn eval( self, a: &mut [Self::Elem], b: &mut [Self::Elem], ) -> Result<LeastSquaresOwned<Self::Elem>>

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§