Trait lax::least_squares::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>>

Object Safety§

This trait is not object safe.

Implementors§