|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
A call-scoped PW sample; every k update refreshes shifted projectors. More...
#include <td_hamilt_pw.h>
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_ |
A call-scoped PW sample; every k update refreshes shifted projectors.
|
private |
| pw::TDHamiltPW< T, Device >::TDHamiltPW | ( | hamilt::HamiltPW< T, Device > & | hamilt, |
| const ModulePW::PW_Basis_K & | basis ) |
| void pw::TDHamiltPW< T, Device >::bind | ( | const Real * | veff, |
| const ModuleBase::Vector3< double > & | vecpot_ha ) |
Select a potential sample whose storage outlives its applications.
|
overridevirtual |
hx[:, 0:nvec) = H * x[:, 0:nvec), both with leading dimension ld
Implements hsolver::HSOperator< T, Device >.
|
overridevirtual |
sx[:, 0:nvec) = S * x[:, 0:nvec), both with leading dimension ld
Implements hsolver::HSOperator< T, Device >.
|
overridevirtual |
switch H and S to k point ik; must precede hpsi()/spsi() for that k
Implements hsolver::HSOperator< T, Device >.
|
private |
|
private |
|
private |
|
private |