pub struct LayerStackGradient {
pub ks: Vec<[Complex; 2]>,
pub zs: Vec<Complex>,
pub q: Vec<[f64; 2]>,
pub thickness: Vec<f64>,
}Expand description
Multilayer parameter cotangents under the real Hermitian pairing.
Fields§
§ks: Vec<[Complex; 2]>Two wavenumber cotangents per medium, ordered from the negative side (below) to the positive side (above).
zs: Vec<Complex>Impedance cotangents per medium.
q: Vec<[f64; 2]>Real transverse-component cotangents per channel; zero when the forward holds
q fixed.
thickness: Vec<f64>Real thickness cotangents for interior media.
Implementations§
Source§impl LayerStackGradient
impl LayerStackGradient
Sourcefn add_interface(
&mut self,
medium: usize,
q: &mut [f64; 2],
gradient: InterfaceGradient,
)
fn add_interface( &mut self, medium: usize, q: &mut [f64; 2], gradient: InterfaceGradient, )
Add the gradient of the interface between medium and the medium above it; its
transverse-wavevector part goes to q, the gradient of the channel’s q.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LayerStackGradient
impl RefUnwindSafe for LayerStackGradient
impl Send for LayerStackGradient
impl Sync for LayerStackGradient
impl Unpin for LayerStackGradient
impl UnwindSafe for LayerStackGradient
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> 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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.