ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
LR::HSolver::LRHSOperator< T, THamilt > Class Template Reference
Inheritance diagram for LR::HSolver::LRHSOperator< T, THamilt >:
Collaboration diagram for LR::HSolver::LRHSOperator< T, THamilt >:

Public Member Functions

 LRHSOperator (const THamilt &hm)
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, Device >
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

const THamilt & hm_

Detailed Description

template<typename T, typename THamilt>
class LR::HSolver::LRHSOperator< T, THamilt >

The LR Hamiltonians (HamiltLR, HamiltULR) are not hamilt::Hamilt, so they get their own hsolver::HSOperator view. S is the identity.

Constructor & Destructor Documentation

◆ LRHSOperator()

template<typename T, typename THamilt>
LR::HSolver::LRHSOperator< T, THamilt >::LRHSOperator ( const THamilt & hm)
inlineexplicit

Member Function Documentation

◆ hpsi()

template<typename T, typename THamilt>
void LR::HSolver::LRHSOperator< T, THamilt >::hpsi ( const T * x,
T * hx,
const int ld,
const int nvec ) const
inlineoverridevirtual

hx[:, 0:nvec) = H * x[:, 0:nvec), both with leading dimension ld

Implements hsolver::HSOperator< T, Device >.

◆ spsi()

template<typename T, typename THamilt>
void LR::HSolver::LRHSOperator< T, THamilt >::spsi ( const T * x,
T * sx,
const int ld,
const int nvec ) const
inlineoverridevirtual

sx[:, 0:nvec) = S * x[:, 0:nvec), both with leading dimension ld

Implements hsolver::HSOperator< T, Device >.

◆ update_k()

template<typename T, typename THamilt>
void LR::HSolver::LRHSOperator< T, THamilt >::update_k ( const int ik)
inlineoverridevirtual

switch H and S to k point ik; must precede hpsi()/spsi() for that k

Implements hsolver::HSOperator< T, Device >.

Member Data Documentation

◆ hm_

template<typename T, typename THamilt>
const THamilt& LR::HSolver::LRHSOperator< T, THamilt >::hm_
private

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