ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
LR::HamiltLR< T > Class Template Reference

#include <hamilt_casida.h>

Inheritance diagram for LR::HamiltLR< T >:
Collaboration diagram for LR::HamiltLR< T >:

Public Member Functions

 HamiltLR (const std::string &xc_kernel, const int &nspin, const int &naos, const std::vector< int > &nocc, const std::vector< int > &nvirt, const UnitCell &ucell_in, const std::vector< double > &orb_cutoff, const Grid_Driver &gd_in, const psi::Psi< T > &psi_ks_in, const ModuleBase::matrix &eig_ks, std::weak_ptr< PotLRBase > pot_in, const K_Vectors &kv_in, const std::vector< Parallel_Blkcyclic > &pX_in, const Parallel_Blkcyclic &pc_in, const Parallel_Orbitals &pmat_in, const std::string &spin_type, const std::string &in_dir, const std::string &out_dir, const std::string &ri_hartree_benchmark="none", const std::vector< int > &aims_nbasis={})
 ~HamiltLR ()
std::vector< T > matrix () const
virtual void hPsi (const T *const psi_in, T *const hpsi, const int ld_psi, const int nband) const

Public Attributes

const std::vector< int > & nocc
const std::vector< int > & nvirt
const int nspin = 1
const int nk = 1
const std::vector< Parallel_Blkcyclic > & pX

Protected Member Functions

 HamiltLR (const int &nspin_in, const std::vector< int > &nocc_in, const std::vector< int > &nvirt_in, const std::vector< Parallel_Blkcyclic > &pX_in, const K_Vectors &kv_in, const Parallel_Orbitals &pmat_in)
T one () const
double one () const
std::complex< double > one () const

Protected Attributes

const bool tdm_sym = false
 whether to symmetrize the transition density matrix
std::unique_ptr< module_dm::DensityMatrix< T, T > > DM_trans
hamilt::Operator< T, base_device::DEVICE_CPU > * ops = nullptr
 first node operator, add operations from each operators
std::function< void(const int &, const T *const)> cal_dm_trans

Constructor & Destructor Documentation

◆ HamiltLR() [1/2]

template<typename T>
LR::HamiltLR< T >::HamiltLR ( const std::string & xc_kernel,
const int & nspin,
const int & naos,
const std::vector< int > & nocc,
const std::vector< int > & nvirt,
const UnitCell & ucell_in,
const std::vector< double > & orb_cutoff,
const Grid_Driver & gd_in,
const psi::Psi< T > & psi_ks_in,
const ModuleBase::matrix & eig_ks,
std::weak_ptr< PotLRBase > pot_in,
const K_Vectors & kv_in,
const std::vector< Parallel_Blkcyclic > & pX_in,
const Parallel_Blkcyclic & pc_in,
const Parallel_Orbitals & pmat_in,
const std::string & spin_type,
const std::string & in_dir,
const std::string & out_dir,
const std::string & ri_hartree_benchmark = "none",
const std::vector< int > & aims_nbasis = {} )
inline
Here is the caller graph for this function:

◆ ~HamiltLR()

template<typename T>
LR::HamiltLR< T >::~HamiltLR ( )
inline

◆ HamiltLR() [2/2]

template<typename T>
LR::HamiltLR< T >::HamiltLR ( const int & nspin_in,
const std::vector< int > & nocc_in,
const std::vector< int > & nvirt_in,
const std::vector< Parallel_Blkcyclic > & pX_in,
const K_Vectors & kv_in,
const Parallel_Orbitals & pmat_in )
inlineprotected

Initialize shared storage without constructing a Casida operator chain or installing its density callback. Z operators build their own chains directly. Each caller initializes DMR for its geometry (RI benchmarks may omit it).

Here is the call graph for this function:

Member Function Documentation

◆ hPsi()

template<typename T>
virtual void LR::HamiltLR< T >::hPsi ( const T *const psi_in,
T *const hpsi,
const int ld_psi,
const int nband ) const
inlinevirtual

Reimplemented in LR::Z_vector_R< T >.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ matrix()

template<typename T>
std::vector< T > LR::HamiltLR< T >::matrix ( ) const
Here is the call graph for this function:

◆ one() [1/3]

std::complex< double > LR::HamiltLR< std::complex< double > >::one ( ) const
protected
Here is the call graph for this function:

◆ one() [2/3]

double LR::HamiltLR< double >::one ( ) const
protected

◆ one() [3/3]

template<typename T>
T LR::HamiltLR< T >::one ( ) const
protected
Here is the caller graph for this function:

Member Data Documentation

◆ cal_dm_trans

template<typename T>
std::function<void(const int&, const T* const)> LR::HamiltLR< T >::cal_dm_trans
protected

◆ DM_trans

template<typename T>
std::unique_ptr<module_dm::DensityMatrix<T, T> > LR::HamiltLR< T >::DM_trans
protected

transition density matrix in AO representation calculate on the same address for each bands, and commonly used by all the operators

◆ nk

template<typename T>
const int LR::HamiltLR< T >::nk = 1

◆ nocc

template<typename T>
const std::vector<int>& LR::HamiltLR< T >::nocc

◆ nspin

template<typename T>
const int LR::HamiltLR< T >::nspin = 1

◆ nvirt

template<typename T>
const std::vector<int>& LR::HamiltLR< T >::nvirt

◆ ops

template<typename T>
hamilt::Operator<T, base_device::DEVICE_CPU>* LR::HamiltLR< T >::ops = nullptr
protected

first node operator, add operations from each operators

◆ pX

template<typename T>
const std::vector<Parallel_Blkcyclic>& LR::HamiltLR< T >::pX

◆ tdm_sym

template<typename T>
const bool LR::HamiltLR< T >::tdm_sym = false
protected

whether to symmetrize the transition density matrix


The documentation for this class was generated from the following files: