pub struct Continuum { /* private fields */ }Expand description
A continuum (k·p) Hamiltonian: a polynomial in (k_x, k_y, k_z) with matrix coefficients.
Implementations§
Source§impl Continuum
impl Continuum
Sourcepub fn parse(
expression: &str,
params: &[(&str, f64)],
) -> Result<Self, ContinuumError>
pub fn parse( expression: &str, params: &[(&str, f64)], ) -> Result<Self, ContinuumError>
Parses expression with the named numeric params (see the module documentation).
Sourcepub fn discretize(&self, a: f64) -> Model
pub fn discretize(&self, a: f64) -> Model
Tight-binding model on a lattice of constant a: a chain, square or cubic lattice of
Self::dim dimensions.
Sourcepub fn discretize_in(&self, a: f64, dim: usize) -> Model
pub fn discretize_in(&self, a: f64, dim: usize) -> Model
Tight-binding model on the dim-dimensional hypercubic lattice of constant a.
Panics if the Hamiltonian is not Hermitian (an on-site matrix that is not Hermitian, or opposite hoppings that are not conjugate).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Continuum
impl RefUnwindSafe for Continuum
impl Send for Continuum
impl Sync for Continuum
impl Unpin for Continuum
impl UnsafeUnpin for Continuum
impl UnwindSafe for Continuum
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