pub struct SMatrix {
pub energy: f64,
pub blocks: Vec<Vec<CMat>>,
pub incoming: Vec<Vec<c64>>,
pub outgoing: Vec<Vec<c64>>,
}Expand description
Scattering matrix at one energy in the basis of the propagating lead modes.
Fields§
§energy: f64Energy E of the scattering matrix.
blocks: Vec<Vec<CMat>>blocks[p][q]: amplitudes into the outgoing modes of lead p (rows) from the incoming
modes of lead q (columns), all modes normalised to unit current.
incoming: Vec<Vec<c64>>Bloch factors λ of the incoming and outgoing modes of each lead, along the lead away
from the device (ψ_n = φ λ^n, n the cell).
outgoing: Vec<Vec<c64>>Bloch factors λ of the outgoing modes of each lead: outgoing[p] follows the rows of
blocks[p][q], as incoming[q] its columns.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SMatrix
impl RefUnwindSafe for SMatrix
impl Send for SMatrix
impl Sync for SMatrix
impl Unpin for SMatrix
impl UnsafeUnpin for SMatrix
impl UnwindSafe for SMatrix
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more