pub struct GaussianShell {
pub shell_type: ShellType,
pub exponents: Vec<f64>,
pub coefficients_s: Vec<f64>,
pub coefficients_p: Vec<f64>,
}Expand description
A single contracted Gaussian shell.
Fields§
§shell_type: ShellTypeShell type.
exponents: Vec<f64>Exponents of the primitive Gaussians.
coefficients_s: Vec<f64>Contraction coefficients for s (or s-part of SP).
coefficients_p: Vec<f64>Contraction coefficients for p-part of SP (empty if not SP).
Implementations§
Source§impl GaussianShell
impl GaussianShell
Sourcepub fn new(
shell_type: ShellType,
exponents: Vec<f64>,
coefficients: Vec<f64>,
) -> Self
pub fn new( shell_type: ShellType, exponents: Vec<f64>, coefficients: Vec<f64>, ) -> Self
Create a pure-type shell (S, P, D, …).
Sourcepub fn new_sp(exponents: Vec<f64>, coeff_s: Vec<f64>, coeff_p: Vec<f64>) -> Self
pub fn new_sp(exponents: Vec<f64>, coeff_s: Vec<f64>, coeff_p: Vec<f64>) -> Self
Create an SP-type shell (Pople 6-31G style).
Sourcepub fn n_primitives(&self) -> usize
pub fn n_primitives(&self) -> usize
Number of primitive Gaussians in this shell.
Sourcepub fn n_basis_functions(&self) -> usize
pub fn n_basis_functions(&self) -> usize
Number of contracted basis functions for this shell (angular momentum degeneracy).
Trait Implementations§
Source§impl Clone for GaussianShell
impl Clone for GaussianShell
Source§fn clone(&self) -> GaussianShell
fn clone(&self) -> GaussianShell
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 GaussianShell
impl RefUnwindSafe for GaussianShell
impl Send for GaussianShell
impl Sync for GaussianShell
impl Unpin for GaussianShell
impl UnsafeUnpin for GaussianShell
impl UnwindSafe for GaussianShell
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<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.