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§
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>>
Object Safety§
This trait is not object safe.