Struct lax::least_squares::LeastSquaresWork
source · pub struct LeastSquaresWork<T: Scalar> {
pub a_layout: MatrixLayout,
pub b_layout: MatrixLayout,
pub singular_values: Vec<MaybeUninit<T::Real>>,
pub work: Vec<MaybeUninit<T>>,
pub iwork: Vec<MaybeUninit<i32>>,
pub rwork: Option<Vec<MaybeUninit<T::Real>>>,
}
Fields§
§a_layout: MatrixLayout
§b_layout: MatrixLayout
§singular_values: Vec<MaybeUninit<T::Real>>
§work: Vec<MaybeUninit<T>>
§iwork: Vec<MaybeUninit<i32>>
§rwork: Option<Vec<MaybeUninit<T::Real>>>
Trait Implementations§
source§impl LeastSquaresWorkImpl for LeastSquaresWork<c32>
impl LeastSquaresWorkImpl for LeastSquaresWork<c32>
type Elem = Complex<f32>
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>>
source§impl LeastSquaresWorkImpl for LeastSquaresWork<c64>
impl LeastSquaresWorkImpl for LeastSquaresWork<c64>
type Elem = Complex<f64>
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>>
source§impl LeastSquaresWorkImpl for LeastSquaresWork<f32>
impl LeastSquaresWorkImpl for LeastSquaresWork<f32>
type Elem = f32
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>>
source§impl LeastSquaresWorkImpl for LeastSquaresWork<f64>
impl LeastSquaresWorkImpl for LeastSquaresWork<f64>
type Elem = f64
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>>
Auto Trait Implementations§
impl<T> Freeze for LeastSquaresWork<T>
impl<T> RefUnwindSafe for LeastSquaresWork<T>where
<T as Scalar>::Real: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for LeastSquaresWork<T>
impl<T> Sync for LeastSquaresWork<T>
impl<T> Unpin for LeastSquaresWork<T>
impl<T> UnwindSafe for LeastSquaresWork<T>where
<T as Scalar>::Real: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more