ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
pw::TDHamiltPW< T, Device > Class Template Referencefinal

A call-scoped PW sample; every k update refreshes shifted projectors. More...

#include <td_hamilt_pw.h>

Inheritance diagram for pw::TDHamiltPW< T, Device >:
Collaboration diagram for pw::TDHamiltPW< T, Device >:

Public Member Functions

 TDHamiltPW (hamilt::HamiltPW< T, Device > &hamilt, const ModulePW::PW_Basis_K &basis)
void bind (const Real *veff, const ModuleBase::Vector3< double > &vecpot_ha)
 Select a potential sample whose storage outlives its applications.
void update_k (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, int ld, int bands) const override
 hx[:, 0:nvec) = H * x[:, 0:nvec), both with leading dimension ld
void spsi (const T *x, T *sx, int ld, int bands) 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 Types

using Real = typename T::value_type

Private Attributes

hamilt::HamiltPW< T, Device > & hamilt_
hamilt::HamiltHSOperator< T, Device > op_
const Real * veff_ = nullptr
ModuleBase::Vector3< double > vecpot_ha_

Detailed Description

template<typename T, typename Device>
class pw::TDHamiltPW< T, Device >

A call-scoped PW sample; every k update refreshes shifted projectors.

Member Typedef Documentation

◆ Real

template<typename T, typename Device>
using pw::TDHamiltPW< T, Device >::Real = typename T::value_type
private

Constructor & Destructor Documentation

◆ TDHamiltPW()

template<typename T, typename Device>
pw::TDHamiltPW< T, Device >::TDHamiltPW ( hamilt::HamiltPW< T, Device > & hamilt,
const ModulePW::PW_Basis_K & basis )

Member Function Documentation

◆ bind()

template<typename T, typename Device>
void pw::TDHamiltPW< T, Device >::bind ( const Real * veff,
const ModuleBase::Vector3< double > & vecpot_ha )

Select a potential sample whose storage outlives its applications.

Here is the caller graph for this function:

◆ hpsi()

template<typename T, typename Device>
void pw::TDHamiltPW< T, Device >::hpsi ( const T * x,
T * hx,
int ld,
int nvec ) const
overridevirtual

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

Implements hsolver::HSOperator< T, Device >.

◆ spsi()

template<typename T, typename Device>
void pw::TDHamiltPW< T, Device >::spsi ( const T * x,
T * sx,
int ld,
int nvec ) const
overridevirtual

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

Implements hsolver::HSOperator< T, Device >.

◆ update_k()

template<typename T, typename Device>
void pw::TDHamiltPW< T, Device >::update_k ( int ik)
overridevirtual

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

Implements hsolver::HSOperator< T, Device >.

Member Data Documentation

◆ hamilt_

template<typename T, typename Device>
hamilt::HamiltPW<T, Device>& pw::TDHamiltPW< T, Device >::hamilt_
private

◆ op_

template<typename T, typename Device>
hamilt::HamiltHSOperator<T, Device> pw::TDHamiltPW< T, Device >::op_
private

◆ vecpot_ha_

template<typename T, typename Device>
ModuleBase::Vector3<double> pw::TDHamiltPW< T, Device >::vecpot_ha_
private

◆ veff_

template<typename T, typename Device>
const Real* pw::TDHamiltPW< T, Device >::veff_ = nullptr
private

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