pub struct TorusOperator {
pub n: usize,
pub comps: usize,
pub kinetic: Vec<CMat>,
pub local: Vec<(usize, CMat)>,
/* private fields */
}Expand description
H = M(k) + V(x) on an n × n torus with comps orbitals per site.
Fields§
§n: usizeNumber of sites along each side of the torus.
comps: usizeOrbitals per site: a wave function holds comps components of n² entries each.
kinetic: Vec<CMat>k-space multiplier per k index (kx + n·ky).
local: Vec<(usize, CMat)>Local matrices on sites x + n·y.
Implementations§
Source§impl TorusOperator
impl TorusOperator
Sourcepub fn new(
n: usize,
comps: usize,
kinetic: Vec<CMat>,
local: Vec<(usize, CMat)>,
) -> Self
pub fn new( n: usize, comps: usize, kinetic: Vec<CMat>, local: Vec<(usize, CMat)>, ) -> Self
Operator from the multipliers M(k) of the n² k points (see kinetic_from_model) and
the local matrices; every matrix is comps × comps.
Sourcepub fn to_x(&self, psi: &mut [c64])
pub fn to_x(&self, psi: &mut [c64])
Backward FFT of every component, divided by n² (inverse of Self::to_k).
Trait Implementations§
Source§impl Clone for TorusOperator
impl Clone for TorusOperator
Source§fn clone(&self) -> TorusOperator
fn clone(&self) -> TorusOperator
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 !RefUnwindSafe for TorusOperator
impl !UnwindSafe for TorusOperator
impl Freeze for TorusOperator
impl Send for TorusOperator
impl Sync for TorusOperator
impl Unpin for TorusOperator
impl UnsafeUnpin for TorusOperator
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