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
sourceimpl 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>>
sourceimpl 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>>
sourceimpl 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>>
sourceimpl 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> RefUnwindSafe for LeastSquaresWork<T>where
T: RefUnwindSafe,
<T as Scalar>::Real: RefUnwindSafe,
impl<T> Send for LeastSquaresWork<T>where
T: Send,
<T as Scalar>::Real: Send,
impl<T> Sync for LeastSquaresWork<T>where
T: Sync,
<T as Scalar>::Real: Sync,
impl<T> Unpin for LeastSquaresWork<T>where
T: Unpin,
<T as Scalar>::Real: Unpin,
impl<T> UnwindSafe for LeastSquaresWork<T>where
T: UnwindSafe,
<T as Scalar>::Real: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more