pub struct AdvancedBasisSets {
pub n_basis: usize,
pub basis_type: BasisSetType,
pub parameters: Vec<BasisParameter>,
pub overlap_matrix: Array2<f64>,
}Expand description
Advanced basis sets for quantum calculations
Fields§
§n_basis: usizeNumber of basis functions
basis_type: BasisSetTypeBasis set type
parameters: Vec<BasisParameter>Basis function parameters
overlap_matrix: Array2<f64>Overlap matrix
Implementations§
Source§impl AdvancedBasisSets
impl AdvancedBasisSets
Sourcepub fn new(n_basis: usize, basistype: BasisSetType) -> Self
pub fn new(n_basis: usize, basistype: BasisSetType) -> Self
Create new advanced basis set
Sourcepub fn generate_basis_functions(
&self,
coordinates: &Array2<f64>,
) -> Result<Array2<Complex64>>
pub fn generate_basis_functions( &self, coordinates: &Array2<f64>, ) -> Result<Array2<Complex64>>
Generate basis functions
Sourcepub fn calculate_overlap_matrix(
&mut self,
coordinates: &Array2<f64>,
) -> Result<()>
pub fn calculate_overlap_matrix( &mut self, coordinates: &Array2<f64>, ) -> Result<()>
Calculate overlap matrix
Sourcepub fn orthogonalize_basis(&mut self) -> Result<()>
pub fn orthogonalize_basis(&mut self) -> Result<()>
Orthogonalize basis functions using Gram-Schmidt
Sourcepub fn transform_basis(
&self,
transformation_matrix: &Array2<f64>,
) -> Result<AdvancedBasisSets>
pub fn transform_basis( &self, transformation_matrix: &Array2<f64>, ) -> Result<AdvancedBasisSets>
Transform basis functions
Trait Implementations§
Source§impl Clone for AdvancedBasisSets
impl Clone for AdvancedBasisSets
Source§fn clone(&self) -> AdvancedBasisSets
fn clone(&self) -> AdvancedBasisSets
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 AdvancedBasisSets
impl RefUnwindSafe for AdvancedBasisSets
impl Send for AdvancedBasisSets
impl Sync for AdvancedBasisSets
impl Unpin for AdvancedBasisSets
impl UnwindSafe for AdvancedBasisSets
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 more