pub struct TwoElectronIntegrals { /* private fields */ }Expand description
Store two-electron integrals in a compact format.
For N basis functions, there are N⁴ integrals but only N(N+1)/2 × (N(N+1)/2 + 1)/2 unique ones due to symmetry: (μν|λσ) = (νμ|λσ) = (μν|σλ) = (λσ|μν) = …
Implementations§
Source§impl TwoElectronIntegrals
impl TwoElectronIntegrals
Sourcepub fn compute(basis: &BasisSet) -> Self
pub fn compute(basis: &BasisSet) -> Self
Compute all unique two-electron integrals for the basis set.
Sourcepub fn from_raw(data: Vec<f64>, n_basis: usize) -> Self
pub fn from_raw(data: Vec<f64>, n_basis: usize) -> Self
Construct from pre-computed raw data (e.g. from GPU dispatch).
Sourcepub fn compute_parallel(basis: &BasisSet) -> Self
pub fn compute_parallel(basis: &BasisSet) -> Self
Compute two-electron integrals using rayon parallelism.
Parallelizes the outer i loop. Each thread writes to a
disjoint sub-region via a Mutex-protected accumulation step.
Trait Implementations§
Source§impl Clone for TwoElectronIntegrals
impl Clone for TwoElectronIntegrals
Source§fn clone(&self) -> TwoElectronIntegrals
fn clone(&self) -> TwoElectronIntegrals
Returns a duplicate of the value. Read more
1.0.0 · 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 TwoElectronIntegrals
impl RefUnwindSafe for TwoElectronIntegrals
impl Send for TwoElectronIntegrals
impl Sync for TwoElectronIntegrals
impl Unpin for TwoElectronIntegrals
impl UnsafeUnpin for TwoElectronIntegrals
impl UnwindSafe for TwoElectronIntegrals
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,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.