pub struct Driven { /* private fields */ }Expand description
The Hamiltonian H(t) of a region under a uniform vector potential, as a sparse matrix whose
entries carry the displacement class of their bond.
Implementations§
Source§impl Driven
impl Driven
Sourcepub fn new(model: &Model, region: &Region, periods: &[Cell]) -> Self
pub fn new(model: &Model, region: &Region, periods: &[Cell]) -> Self
The region repeated along periods (open if empty), without field.
Sourcepub fn with_force(self, force: Vec3) -> Self
pub fn with_force(self, force: Vec3) -> Self
A constant force F from t = 0 (see constant_force).
Sourcepub fn with_vector_potential(self, potential: VectorPotential) -> Self
pub fn with_vector_potential(self, potential: VectorPotential) -> Self
Any uniform vector potential A(t).
Sourcepub fn hamiltonian(&self, t: f64) -> SparseMatrix
pub fn hamiltonian(&self, t: f64) -> SparseMatrix
H(t) as a sparse matrix.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Driven
impl !UnwindSafe for Driven
impl Freeze for Driven
impl Send for Driven
impl Sync for Driven
impl Unpin for Driven
impl UnsafeUnpin for Driven
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
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