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

#include <hamilt_lcaopw.h>

Inheritance diagram for hamilt::HamiltLIPHSOperator< T >:
Collaboration diagram for hamilt::HamiltLIPHSOperator< T >:

Public Member Functions

 HamiltLIPHSOperator (HamiltLIP< T > *hm, const ModulePW::PW_Basis_K *wfc_basis, const bool cal_exx, const double hybrid_alpha)
Public Member Functions inherited from hamilt::HamiltHSOperator< T, base_device::DEVICE_CPU >
 HamiltHSOperator (Hamilt< T, base_device::DEVICE_CPU > *hm, const ModulePW::PW_Basis_K *wfc_basis)
void update_k (const int ik) override
 switch H and S to k point ik; must precede hpsi()/spsi() for that k
void hpsi (const T *x, T *hx, const int ld, const int nvec) const override
 hx[:, 0:nvec) = H * x[:, 0:nvec), both with leading dimension ld
void spsi (const T *x, T *sx, const int ld, const int nvec) const override
 sx[:, 0:nvec) = S * x[:, 0:nvec), both with leading dimension ld
Public Member Functions inherited from hsolver::HSOperator< T, base_device::DEVICE_CPU >
virtual ~HSOperator ()=default
virtual void add_to_subspace_h (T *hcc, const int n) const
virtual void export_subspace_vec (const T *vcc, const int n, const int nband) const

Private Attributes

HamiltLIP< T > * hm_lip_ = nullptr
const bool cal_exx_
const double hybrid_alpha_

Additional Inherited Members

Protected Attributes inherited from hamilt::HamiltHSOperator< T, base_device::DEVICE_CPU >
Hamilt< T, base_device::DEVICE_CPU > * hm_
const ModulePW::PW_Basis_K * wfc_basis_
int ik_
 k point set by the last update_k()
int npw_
 number of plane waves of that k point (without npol)

Detailed Description

template<typename T>
class hamilt::HamiltLIPHSOperator< T >

HamiltLIP seen through hsolver::HSOperator. Besides H and S it feeds the EXX term into the subspace Hamiltonian and hands the subspace eigenvectors back to Exx_Lip, which is what HSolverLIP needs.

Constructor & Destructor Documentation

◆ HamiltLIPHSOperator()

template<typename T>
hamilt::HamiltLIPHSOperator< T >::HamiltLIPHSOperator ( HamiltLIP< T > * hm,
const ModulePW::PW_Basis_K * wfc_basis,
const bool cal_exx,
const double hybrid_alpha )
inline
Here is the call graph for this function:

Member Data Documentation

◆ cal_exx_

template<typename T>
const bool hamilt::HamiltLIPHSOperator< T >::cal_exx_
private

◆ hm_lip_

template<typename T>
HamiltLIP<T>* hamilt::HamiltLIPHSOperator< T >::hm_lip_ = nullptr
private

◆ hybrid_alpha_

template<typename T>
const double hamilt::HamiltLIPHSOperator< T >::hybrid_alpha_
private

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