ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
td_hamilt_pw.h
Go to the documentation of this file.
1#ifndef PW_TD_HAMILT_PW_H
2#define PW_TD_HAMILT_PW_H
5
6namespace pw
7{
9template <typename T, typename Device>
10class TDHamiltPW final : public hsolver::HSOperator<T, Device>
11{
12 private:
13 using Real = typename T::value_type;
16 const Real* veff_ = nullptr;
18
19 public:
22 void bind(const Real* veff, const ModuleBase::Vector3<double>& vecpot_ha);
23 void update_k(int ik) override;
24 void hpsi(const T* x, T* hx, int ld, int bands) const override;
25 void spsi(const T* x, T* sx, int ld, int bands) const override;
26};
27} // namespace pw
28#endif
3 elements vector
Definition vector3.h:21
Special pw_basis class. It includes different k-points.
Definition pw_basis_k.h:56
Presents a Hamilt as the H/S block-vector operator the iterative eigensolvers work on (hsolver::HSOpe...
Definition hamilt_hs_adapter.h:23
Definition hamilt_pw.h:21
What an iterative eigensolver needs from the generalized eigenproblem H x = e S x: the ability to app...
Definition hs_operator.h:24
typename T::value_type Real
Definition td_hamilt_pw.h:13
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
Definition td_hamilt_pw.cpp:29
void update_k(int ik) override
switch H and S to k point ik; must precede hpsi()/spsi() for that k
Definition td_hamilt_pw.cpp:18
hamilt::HamiltPW< T, Device > & hamilt_
Definition td_hamilt_pw.h:14
TDHamiltPW(hamilt::HamiltPW< T, Device > &hamilt, const ModulePW::PW_Basis_K &basis)
Definition td_hamilt_pw.cpp:6
const Real * veff_
Definition td_hamilt_pw.h:16
hamilt::HamiltHSOperator< T, Device > op_
Definition td_hamilt_pw.h:15
ModuleBase::Vector3< double > vecpot_ha_
Definition td_hamilt_pw.h:17
void bind(const Real *veff, const ModuleBase::Vector3< double > &vecpot_ha)
Select a potential sample whose storage outlives its applications.
Definition td_hamilt_pw.cpp:11
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
Definition td_hamilt_pw.cpp:24
#define T
Definition exp.cpp:237
Definition wf_op.cpp:6
Definition deltaspin_pw.cpp:7