Struct EigGeneralizedWork

Source
#[non_exhaustive]
pub struct EigGeneralizedWork<T: Scalar> {
Show 15 fields pub n: i32, pub jobvr: JobEv, pub jobvl: JobEv, pub alpha: Vec<MaybeUninit<T::Complex>>, pub beta: Vec<MaybeUninit<T::Complex>>, pub alpha_re: Option<Vec<MaybeUninit<T::Real>>>, pub alpha_im: Option<Vec<MaybeUninit<T::Real>>>, pub beta_re: Option<Vec<MaybeUninit<T::Real>>>, pub beta_im: Option<Vec<MaybeUninit<T::Real>>>, pub vc_l: Option<Vec<MaybeUninit<T::Complex>>>, pub vr_l: Option<Vec<MaybeUninit<T::Real>>>, pub vc_r: Option<Vec<MaybeUninit<T::Complex>>>, pub vr_r: Option<Vec<MaybeUninit<T::Real>>>, pub work: Vec<MaybeUninit<T>>, pub rwork: Option<Vec<MaybeUninit<T::Real>>>,
}

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§n: i32

Problem size

§jobvr: JobEv

Compute right eigenvectors or not

§jobvl: JobEv

Compute left eigenvectors or not

§alpha: Vec<MaybeUninit<T::Complex>>

Eigenvalues: alpha (numerators)

§beta: Vec<MaybeUninit<T::Complex>>

Eigenvalues: beta (denominators)

§alpha_re: Option<Vec<MaybeUninit<T::Real>>>

Real part of alpha (eigenvalue numerators) used in real routines

§alpha_im: Option<Vec<MaybeUninit<T::Real>>>

Imaginary part of alpha (eigenvalue numerators) used in real routines

§beta_re: Option<Vec<MaybeUninit<T::Real>>>

Real part of beta (eigenvalue denominators) used in real routines

§beta_im: Option<Vec<MaybeUninit<T::Real>>>

Imaginary part of beta (eigenvalue denominators) used in real routines

§vc_l: Option<Vec<MaybeUninit<T::Complex>>>

Left eigenvectors

§vr_l: Option<Vec<MaybeUninit<T::Real>>>

Left eigenvectors used in real routines

§vc_r: Option<Vec<MaybeUninit<T::Complex>>>

Right eigenvectors

§vr_r: Option<Vec<MaybeUninit<T::Real>>>

Right eigenvectors used in real routines

§work: Vec<MaybeUninit<T>>

Working memory

§rwork: Option<Vec<MaybeUninit<T::Real>>>

Working memory with T::Real

Implementations§

Source§

impl<T> EigGeneralizedWork<T>
where T: Scalar, EigGeneralizedWork<T>: EigGeneralizedWorkImpl<Elem = T>,

Source

pub fn new(calc_v: bool, l: MatrixLayout) -> Result<Self>

Create new working memory for eigenvalues compution.

Source

pub fn calc( &mut self, a: &mut [T], b: &mut [T], ) -> Result<EigGeneralizedRef<'_, T>>

Compute eigenvalues and vectors on this working memory.

Source

pub fn eval(self, a: &mut [T], b: &mut [T]) -> Result<EigGeneralizedOwned<T>>

Compute eigenvalues and vectors by consuming this working memory.

Trait Implementations§

Source§

impl EigGeneralizedWorkImpl for EigGeneralizedWork<c32>

Source§

type Elem = Complex<f32>

Source§

fn new(calc_v: bool, l: MatrixLayout) -> Result<Self>

Source§

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

Source§

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

Source§

impl EigGeneralizedWorkImpl for EigGeneralizedWork<c64>

Source§

type Elem = Complex<f64>

Source§

fn new(calc_v: bool, l: MatrixLayout) -> Result<Self>

Source§

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

Source§

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

Source§

impl EigGeneralizedWorkImpl for EigGeneralizedWork<f32>

Source§

type Elem = f32

Source§

fn new(calc_v: bool, l: MatrixLayout) -> Result<Self>

Source§

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

Source§

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

Source§

impl EigGeneralizedWorkImpl for EigGeneralizedWork<f64>

Source§

type Elem = f64

Source§

fn new(calc_v: bool, l: MatrixLayout) -> Result<Self>

Source§

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

Source§

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

Auto Trait Implementations§

§

impl<T> Freeze for EigGeneralizedWork<T>

§

impl<T> RefUnwindSafe for EigGeneralizedWork<T>
where <T as Scalar>::Complex: RefUnwindSafe, T: RefUnwindSafe, <T as Scalar>::Real: RefUnwindSafe,

§

impl<T> Send for EigGeneralizedWork<T>
where <T as Scalar>::Complex: Send, T: Send, <T as Scalar>::Real: Send,

§

impl<T> Sync for EigGeneralizedWork<T>
where <T as Scalar>::Complex: Sync, T: Sync, <T as Scalar>::Real: Sync,

§

impl<T> Unpin for EigGeneralizedWork<T>
where <T as Scalar>::Complex: Unpin, T: Unpin, <T as Scalar>::Real: Unpin,

§

impl<T> UnwindSafe for EigGeneralizedWork<T>
where <T as Scalar>::Complex: UnwindSafe, T: UnwindSafe, <T as Scalar>::Real: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V