1#ifndef MODULE_HAMILT_VEFF_H
2#define MODULE_HAMILT_VEFF_H
10template <
typename FPTYPE,
typename Device>
26 std::complex<FPTYPE> *out,
52 std::complex<FPTYPE> *out,
53 std::complex<FPTYPE> *out1,
57#if __CUDA || __UT_USE_CUDA || __ROCM || __UT_USE_ROCM
59template <
typename FPTYPE>
63 const base_device::DEVICE_GPU *dev,
65 std::complex<FPTYPE> *out,
69 const base_device::DEVICE_GPU *dev,
71 std::complex<FPTYPE> *out,
72 std::complex<FPTYPE> *out1,
void operator()(const Device *dev, const int &size, std::complex< FPTYPE > *out, const FPTYPE *in)
Compute the effective potential of hPsi in real space, out[ir] *= in[ir];.
void operator()(const Device *dev, const int &size, std::complex< FPTYPE > *out, std::complex< FPTYPE > *out1, const FPTYPE **in)
Compute the effective potential of hPsi in real space with NSPIN > 2,.