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

#include <hamilt_zeq_r.h>

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

Public Member Functions

 Z_vector_R (const std::string &xc_kernel, const int &nspin, const int &naos, const std::vector< int > &nocc, const std::vector< int > &nvirt, const UnitCell &ucell, const std::vector< double > &orb_cutoff, const Grid_Driver &gd, const psi::Psi< T > &psi_ks, const ModuleBase::matrix &eig_ks, std::weak_ptr< PotHxcLR > pot, std::weak_ptr< PotHxcLR > pot_hxc_gs, const K_Vectors &kv, const std::vector< Parallel_Blkcyclic > &pX, const Parallel_Blkcyclic &pc, const Parallel_Orbitals &pmat, const std::string &in_dir, const std::string &out_dir, const std::string &dft_functional, const std::string &spin_type="singlet")
virtual void hPsi (const T *const psi, T *const hpsi, const int ld_psi, const int nband) const override
void hPsi (const T *psi, T *hpsi, const int ld_psi, const int nband, const std::vector< std::vector< ct::Tensor > > &window_density) const
Public Member Functions inherited from 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={})
 ~HamiltLR ()
std::vector< T > matrix () const

Private Types

using ATYPE = typename OperatorLRHxc<T>::MO_TO_AO_TYPE

Private Attributes

std::unique_ptr< module_dm::DensityMatrix< T, T > > DM_diff
std::function< void(const int &, const T *, const std::vector< ct::Tensor > *)> cal_dm_diff
std::shared_ptr< PotLRBase > pot_grad

Additional Inherited Members

Public Attributes inherited from LR::HamiltLR< T >
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 inherited from 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)
T one () const
double one () const
std::complex< double > one () const
Protected Attributes inherited from LR::HamiltLR< T >
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

Member Typedef Documentation

◆ ATYPE

template<typename T>
using LR::Z_vector_R< T >::ATYPE = typename OperatorLRHxc<T>::MO_TO_AO_TYPE
private

Constructor & Destructor Documentation

◆ Z_vector_R()

template<typename T>
LR::Z_vector_R< T >::Z_vector_R ( const std::string & xc_kernel,
const int & nspin,
const int & naos,
const std::vector< int > & nocc,
const std::vector< int > & nvirt,
const UnitCell & ucell,
const std::vector< double > & orb_cutoff,
const Grid_Driver & gd,
const psi::Psi< T > & psi_ks,
const ModuleBase::matrix & eig_ks,
std::weak_ptr< PotHxcLR > pot,
std::weak_ptr< PotHxcLR > pot_hxc_gs,
const K_Vectors & kv,
const std::vector< Parallel_Blkcyclic > & pX,
const Parallel_Blkcyclic & pc,
const Parallel_Orbitals & pmat,
const std::string & in_dir,
const std::string & out_dir,
const std::string & dft_functional,
const std::string & spin_type = "singlet" )
inline
Here is the call graph for this function:

Member Function Documentation

◆ hPsi() [1/2]

template<typename T>
virtual void LR::Z_vector_R< T >::hPsi ( const T *const psi,
T *const hpsi,
const int ld_psi,
const int nband ) const
inlineoverridevirtual

Reimplemented from LR::HamiltLR< T >.

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

◆ hPsi() [2/2]

template<typename T>
void LR::Z_vector_R< T >::hPsi ( const T * psi,
T * hpsi,
const int ld_psi,
const int nband,
const std::vector< std::vector< ct::Tensor > > & window_density ) const
inline
Here is the call graph for this function:

Member Data Documentation

◆ cal_dm_diff

template<typename T>
std::function<void(const int&, const T*, const std::vector<ct::Tensor>*)> LR::Z_vector_R< T >::cal_dm_diff
private

◆ DM_diff

template<typename T>
std::unique_ptr<module_dm::DensityMatrix<T, T> > LR::Z_vector_R< T >::DM_diff
private

◆ pot_grad

template<typename T>
std::shared_ptr<PotLRBase> LR::Z_vector_R< T >::pot_grad
private

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