pub struct Complex<T: Real = f64> {
pub re: T,
pub im: T,
}Expand description
A pair re + i·im (eigenvalues of a real nonsymmetric operator). No
arithmetic: a value type for results, not a complex scalar (complex
matrices are out of scope).
Fields§
§re: TReal part.
im: TImaginary part.
Trait Implementations§
impl<T: Copy + Real> Copy for Complex<T>
impl<T: PartialEq + Real> StructuralPartialEq for Complex<T>
Auto Trait Implementations§
impl<T> Freeze for Complex<T>where
T: Freeze,
impl<T> RefUnwindSafe for Complex<T>where
T: RefUnwindSafe,
impl<T> Send for Complex<T>where
T: Send,
impl<T> Sync for Complex<T>where
T: Sync,
impl<T> Unpin for Complex<T>where
T: Unpin,
impl<T> UnsafeUnpin for Complex<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Complex<T>where
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