pub struct ModeSolver { /* private fields */ }Expand description
The part of a lead’s mode problem that does not depend on the energy, prepared once: whether
the coupling is Hermitian definite (the fast path of LeadModes::at) and, when it is a
multiple of the identity (square and cubic lattices), the eigenvectors of the cell. Solvers
keep one per lead and reuse it at every energy.
Implementations§
Source§impl ModeSolver
impl ModeSolver
Sourcepub fn new(h0: &CMat, h1: &CMat) -> Self
pub fn new(h0: &CMat, h1: &CMat) -> Self
Prepares the lead (h0, h1), h1 = ⟨j| H |j+1⟩: detects a Hermitian definite coupling
and, for h1 = ±c·1, diagonalises the cell h0 once.
Sourcepub fn modes_at(&self, z: c64) -> Result<LeadModes, GreenError>
pub fn modes_at(&self, z: c64) -> Result<LeadModes, GreenError>
Modes at z, as LeadModes::at.
Trait Implementations§
Source§impl Clone for ModeSolver
impl Clone for ModeSolver
Source§fn clone(&self) -> ModeSolver
fn clone(&self) -> ModeSolver
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ModeSolver
impl RefUnwindSafe for ModeSolver
impl Send for ModeSolver
impl Sync for ModeSolver
impl Unpin for ModeSolver
impl UnsafeUnpin for ModeSolver
impl UnwindSafe for ModeSolver
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