ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
hamilt Namespace Reference

Classes

struct  cal_sk_op< FPTYPE, base_device::DEVICE_CPU >
struct  cal_sk_op
class  Hamilt
class  HamiltBase
 Base class for Hamiltonian. More...
class  HamiltHSOperator
 Presents a Hamilt as the H/S block-vector operator the iterative eigensolvers work on (hsolver::HSOperator). More...
class  HamiltHSMatrix
 Presents a Hamilt as the H(k)/S(k) matrix source the direct eigensolvers work on (hsolver::HSMatrix). More...
class  HS_Matrix_K
class  AtomPair
class  BaseMatrix
class  HContainer
class  Output_HContainer
 A class to output the HContainer. More...
class  Read_HContainer
 A class to read the HContainer. More...
class  HTransPara
class  HTransSerial
class  XC_FunctionalOpTest
struct  xc_functional_grad_wfc_op
class  Operator
class  OperatorLCAO
class  HamiltLCAO
struct  LcaoOpsBundle
 products of the LCAO operator-chain factory. More...
class  DFTU_onsite
class  DFTU_onsite< OperatorLCAO< TK, TR > >
class  DFTU_firstzeta
class  DFTU_firstzeta< OperatorLCAO< TK, TR > >
class  DeePKS
class  DeePKS< OperatorLCAO< TK, TR > >
class  DeltaSpin
class  DeltaSpin< OperatorLCAO< TK, TR > >
class  EKinetic
class  EKinetic< OperatorLCAO< TK, TR > >
class  Meta
class  Meta< OperatorLCAO< TK, TR > >
class  Nonlocal
class  Nonlocal< OperatorLCAO< TK, TR > >
class  Overlap
class  Overlap< OperatorLCAO< TK, TR > >
class  TDEkinetic
class  TDEkinetic< OperatorLCAO< TK, TR > >
class  TDNonlocal
class  TDNonlocal< OperatorLCAO< TK, TR > >
class  TD_pot_hybrid
class  TD_pot_hybrid< OperatorLCAO< TK, TR > >
class  Veff
class  Veff< OperatorLCAO< TK, TR > >
 Effective potential class, used for calculating Hamiltonian with grid integration tools If user want to separate the contribution of V_{eff} into V_{H} and V_{XC} and V_{local pseudopotential} and so on, the user can separate the Potential class into different parts, and construct different Veff class for each part. More...
class  Onsite_Proj_tools
 Nonlocal pseudopotential tools in plane wave basis set. used for calculating force and stress for different algorithm the main functions are: More...
class  FS_Kin_tools
class  FS_Nonlocal_tools
 Nonlocal pseudopotential tools in plane wave basis set. used for calculating force and stress for different algorithm the main functions are: More...
class  HamiltLIP
class  HamiltLIPHSOperator
class  HamiltPW
struct  cal_density_real_op< T, base_device::DEVICE_CPU >
struct  cal_density_real_op
struct  ekinetic_pw_op< FPTYPE, base_device::DEVICE_CPU >
struct  ekinetic_pw_op
struct  exx_cal_energy_op< std::complex< FPTYPE >, base_device::DEVICE_CPU >
struct  exx_cal_energy_op
struct  cal_vkb1_nl_op< FPTYPE, base_device::DEVICE_CPU >
struct  cal_force_nl_op< FPTYPE, base_device::DEVICE_CPU >
struct  cal_vkb1_nl_op
struct  cal_force_nl_op
struct  cal_force_loc_op
struct  cal_force_ew_op
struct  meta_pw_op< FPTYPE, base_device::DEVICE_CPU >
struct  meta_pw_op
struct  mul_potential_op< std::complex< FPTYPE >, base_device::DEVICE_CPU >
struct  mul_potential_op
struct  nonlocal_pw_op< FPTYPE, base_device::DEVICE_CPU >
struct  nonlocal_pw_op
struct  onsite_ps_op< FPTYPE, base_device::DEVICE_CPU >
struct  onsite_ps_op
class  projector_gradient_op
 Device projector-gradient assembly; metadata is [type,beta,l,lm,atom]. More...
struct  cal_dbecp_noevc_nl_op< FPTYPE, base_device::DEVICE_CPU >
struct  cal_stress_nl_op< FPTYPE, base_device::DEVICE_CPU >
struct  cal_vkb_op< FPTYPE, base_device::DEVICE_CPU >
struct  cal_vkb_deri_op< FPTYPE, base_device::DEVICE_CPU >
struct  cal_vq_op< FPTYPE, base_device::DEVICE_CPU >
struct  cal_vq_deri_op< FPTYPE, base_device::DEVICE_CPU >
struct  cal_stress_drhoc_aux_op< FPTYPE, base_device::DEVICE_CPU >
struct  cal_multi_dot_op< FPTYPE, base_device::DEVICE_CPU >
struct  cal_dbecp_noevc_nl_op
struct  cal_stress_nl_op
struct  cal_stress_mgga_op
struct  cal_vkb_op
struct  cal_vkb_deri_op
struct  cal_vq_op
struct  cal_vq_deri_op
struct  cal_stress_drhoc_aux_op
struct  cal_force_npw_op
struct  cal_multi_dot_op
struct  pointer_array_malloc
struct  synchronize_ptrs
class  StressMggaTest
struct  vec_mul_vec_complex_op< std::complex< FPTYPE >, base_device::DEVICE_CPU >
struct  vec_mul_vec_complex_op
struct  veff_pw_op< FPTYPE, base_device::DEVICE_CPU >
struct  veff_pw_op
struct  cal_vnl_op< FPTYPE, base_device::DEVICE_CPU >
struct  cal_vnl_op
class  Nonlocal_maths
class  NonlocalWorkspace
 Reusable device buffers for applying a nonlocal projector operator. More...
class  OperatorPW
class  Ekinetic
class  Ekinetic< OperatorPW< T, Device > >
class  OperatorEXXPW
class  Meta< OperatorPW< T, Device > >
class  Nonlocal< OperatorPW< T, Device > >
class  OnsiteProj
class  OnsiteProj< OperatorPW< T, Device > >
class  Veff< OperatorPW< T, Device > >
class  Velocity
class  ProjectorGradient
 One-k-point gradient workspace with versioned radial tables. More...
class  VelocityWorkspace
 Reusable projection storage and device contraction for a velocity operator. More...
class  TDEkineticPW
class  TDNonlocalPW
struct  hpsi_norm_op< FPTYPE, base_device::DEVICE_CPU >
struct  hpsi_norm_op
struct  MatrixBlock
 A non-owning description of a matrix stored in memory. More...

Enumerations

enum class  calculation_type {
  no , pw_ekinetic , pw_ekinetic_td , pw_nonlocal ,
  pw_veff , pw_meta , pw_onsite , pw_exx ,
  lcao_overlap , lcao_fixed , lcao_gint , lcao_deepks ,
  lcao_exx , lcao_dftu , lcao_sc_lambda , lcao_tddft_periodic ,
  lr_dmtrans_hxc , lr_dmtrans_gxc , lr_dmdiff_hxc , lr_dmtrans_exx ,
  lr_dmdiff_exx
}

Functions

template<typename TR>
void folding_HR (const hamilt::HContainer< TR > &hR, std::complex< double > *hk, const ModuleBase::Vector3< double > &kvec_d_in, const int hk_ld, const int hk_type)
 calculate the Hk matrix with specific k vector
template void folding_HR< std::complex< double > > (const hamilt::HContainer< std::complex< double > > &hR, std::complex< double > *hk, const ModuleBase::Vector3< double > &kvec_d_in, const int ncol, const int hk_type)
template void folding_HR< double > (const hamilt::HContainer< double > &hR, std::complex< double > *hk, const ModuleBase::Vector3< double > &kvec_d_in, const int ncol, const int hk_type)
void folding_HR (const hamilt::HContainer< double > &hR, double *hk, const ModuleBase::Vector3< double > &kvec_d_in, const int hk_ld, const int hk_type)
template<typename TR>
void transferSerial2Parallels (const hamilt::HContainer< TR > &hR_s, hamilt::HContainer< TR > *hR_p, const int serial_rank)
 transfer the HContainer from serial object to parallel object
template<typename TR>
void transferParallels2Serial (const hamilt::HContainer< TR > &hR_p, hamilt::HContainer< TR > *hR_s, const int serial_rank)
 transfer the HContainer from parallel object to serial object
template<typename TR>
void transferSerials2Parallels (const hamilt::HContainer< TR > &hR_s, hamilt::HContainer< TR > *hR_p)
 transfer the HContainer from all serial objects to all parallel objects
template<typename TR>
void transferParallels2Serials (const hamilt::HContainer< TR > &hR_p, hamilt::HContainer< TR > *hR_s)
 transfer the HContainer from all serial objects to all parallel objects
template<typename TR>
void gatherParallels (const hamilt::HContainer< TR > &hR_p, hamilt::HContainer< TR > *hR_s, const int serial_rank)
 gather the HContainer from all parallel objects to target serial object the serial object should be empty before gather
template void transferSerial2Parallels (const hamilt::HContainer< double > &hR_s, hamilt::HContainer< double > *hR_p, const int serial_rank)
template void transferSerial2Parallels (const hamilt::HContainer< std::complex< double > > &hR_s, hamilt::HContainer< std::complex< double > > *hR_p, const int serial_rank)
template void transferParallels2Serial (const hamilt::HContainer< double > &hR_p, hamilt::HContainer< double > *hR_s, const int serial_rank)
template void transferParallels2Serial (const hamilt::HContainer< std::complex< double > > &hR_p, hamilt::HContainer< std::complex< double > > *hR_s, const int serial_rank)
template void transferSerials2Parallels (const hamilt::HContainer< double > &hR_s, hamilt::HContainer< double > *hR_p)
template void transferSerials2Parallels (const hamilt::HContainer< std::complex< double > > &hR_s, hamilt::HContainer< std::complex< double > > *hR_p)
template void transferParallels2Serials (const hamilt::HContainer< double > &hR_p, hamilt::HContainer< double > *hR_s)
template void transferParallels2Serials (const hamilt::HContainer< std::complex< double > > &hR_p, hamilt::HContainer< std::complex< double > > *hR_s)
template void gatherParallels (const hamilt::HContainer< double > &hR_p, hamilt::HContainer< double > *hR_s, const int serial_rank)
template void gatherParallels (const hamilt::HContainer< std::complex< double > > &hR_p, hamilt::HContainer< std::complex< double > > *hR_s, const int serial_rank)
template<typename T>
void resize_spin_storage (HContainer< T > &current, const HContainer< T > &stored_layout, std::vector< T > &storage, const int current_spin)
template void resize_spin_storage (HContainer< double > &, const HContainer< double > &, std::vector< double > &, const int)
template void resize_spin_storage (HContainer< std::complex< double > > &, const HContainer< std::complex< double > > &, std::vector< std::complex< double > > &, const int)
 TYPED_TEST_SUITE (XC_FunctionalOpTest, base::utils::ComplexTypes)
 TYPED_TEST (XC_FunctionalOpTest, xc_functional_grad_wfc_op)
template<typename TK, typename TR>
LcaoOpsBundle< TK, TR > build_gamma_ops (const UnitCell &ucell, const Grid_Driver &grid_d, const Parallel_Orbitals *paraV, const BasisFlattenedIndexing &basis, const Parallel_Blkcyclic &layout, elecstate::Potential *pot_in, const TwoCenterBundle &two_center_bundle, const LCAO_Orbitals &orb, module_dm::DensityMatrix< TK, double > *DM_in, Plus_U_Base *p_dftu, Setup_DeePKS< TK > &deepks, const Input_para &inp, const std::vector< std::string > &pot_register_in, const K_Vectors *kv, HS_Matrix_K< TK > *hsk, HContainer< TR > *hR, HContainer< TR > *sR)
 build the operator chain for the gamma-only case (TK == double).
template<typename TK, typename TR>
LcaoOpsBundle< TK, TR > build_multik_ops (const UnitCell &ucell, const Grid_Driver &grid_d, const Parallel_Orbitals *paraV, const BasisFlattenedIndexing &basis, const Parallel_Blkcyclic &layout, elecstate::Potential *pot_in, const TwoCenterBundle &two_center_bundle, const LCAO_Orbitals &orb, module_dm::DensityMatrix< TK, double > *DM_in, Plus_U_Base *p_dftu, Setup_DeePKS< TK > &deepks, const Input_para &inp, const std::vector< std::string > &pot_register_in, const K_Vectors *kv, HS_Matrix_K< TK > *hsk, HContainer< TR > *hR, HContainer< TR > *sR, TD_info *td_info)
 build the operator chain for the multi-k case (TK == complex<double>).
template LcaoOpsBundle< double, double > build_gamma_ops< double, double > (const UnitCell &, const Grid_Driver &, const Parallel_Orbitals *, const BasisFlattenedIndexing &, const Parallel_Blkcyclic &, elecstate::Potential *, const TwoCenterBundle &, const LCAO_Orbitals &, module_dm::DensityMatrix< double, double > *, Plus_U_Base *, Setup_DeePKS< double > &, const Input_para &, const std::vector< std::string > &, const K_Vectors *, HS_Matrix_K< double > *, HContainer< double > *, HContainer< double > *)
template LcaoOpsBundle< double, double > build_multik_ops< double, double > (const UnitCell &, const Grid_Driver &, const Parallel_Orbitals *, const BasisFlattenedIndexing &, const Parallel_Blkcyclic &, elecstate::Potential *, const TwoCenterBundle &, const LCAO_Orbitals &, module_dm::DensityMatrix< double, double > *, Plus_U_Base *, Setup_DeePKS< double > &, const Input_para &, const std::vector< std::string > &, const K_Vectors *, HS_Matrix_K< double > *, HContainer< double > *, HContainer< double > *, TD_info *)
template LcaoOpsBundle< std::complex< double >, double > build_gamma_ops< std::complex< double >, double > (const UnitCell &, const Grid_Driver &, const Parallel_Orbitals *, const BasisFlattenedIndexing &, const Parallel_Blkcyclic &, elecstate::Potential *, const TwoCenterBundle &, const LCAO_Orbitals &, module_dm::DensityMatrix< std::complex< double >, double > *, Plus_U_Base *, Setup_DeePKS< std::complex< double > > &, const Input_para &, const std::vector< std::string > &, const K_Vectors *, HS_Matrix_K< std::complex< double > > *, HContainer< double > *, HContainer< double > *)
template LcaoOpsBundle< std::complex< double >, double > build_multik_ops< std::complex< double >, double > (const UnitCell &, const Grid_Driver &, const Parallel_Orbitals *, const BasisFlattenedIndexing &, const Parallel_Blkcyclic &, elecstate::Potential *, const TwoCenterBundle &, const LCAO_Orbitals &, module_dm::DensityMatrix< std::complex< double >, double > *, Plus_U_Base *, Setup_DeePKS< std::complex< double > > &, const Input_para &, const std::vector< std::string > &, const K_Vectors *, HS_Matrix_K< std::complex< double > > *, HContainer< double > *, HContainer< double > *, TD_info *)
template<typename TR>
void cal_overlap_block (const UnitCell &cell, const TwoCenterIntegrator &integrator, const int atom_i, const int atom_j, const std::vector< int > &row_offsets, const std::vector< int > &col_offsets, const ModuleBase::Vector3< double > &displacement, TR *values)
template void cal_overlap_block (const UnitCell &, const TwoCenterIntegrator &, int, int, const std::vector< int > &, const std::vector< int > &, const ModuleBase::Vector3< double > &, double *)
template void cal_overlap_block (const UnitCell &, const TwoCenterIntegrator &, int, int, const std::vector< int > &, const std::vector< int > &, const ModuleBase::Vector3< double > &, std::complex< double > *)
template<typename FPTYPE>
__device__ FPTYPE _polynomial_interpolation (const FPTYPE *table, const int &dim1, const int &dim2, const int &tab_2, const int &tab_3, const FPTYPE &table_interval, const FPTYPE &x)
template<typename FPTYPE>
__device__ FPTYPE _polynomial_interpolation_nl (const FPTYPE *table, const int &dim1, const int &dim2, const int &tab_2, const int &tab_3, const FPTYPE &table_interval, const FPTYPE &x)
template<typename T, typename Device>
void exx_batch_density_real (const int nbands, const int nrxx, const T *nk_real_all, const T *mq_real, const double omega, T *out)
template<typename T, typename Device>
void exx_batch_gather_pw (const int nbands, const int npw, const int nxyz, const int *box_map, const T *box, T *pw)
template<typename T, typename Real, typename Device>
void exx_batch_mul_pot (const int nbands, const int npw, const Real *pot, T *pw)
template<typename T, typename Device>
void exx_batch_scatter_pw (const int nbands, const int npw, const int nxyz, const int *box_map, const T *pw, T *box)
template<typename T, typename Device>
void exx_batch_mul_real (const int nbands, const int nrxx, const T *mq_real, T *data)
template<typename T, typename Real, typename Device>
void exx_batch_gather_accum (const int nbands, const int npwk, const int nxyz, const int *box_map, const T *box, const Real factor, T *out, const int out_stride)
template<typename T, typename Device>
void exx_batch_scatter_wfc (const int nbands, const int npwk, const int nxyz, const int *map, const T *psi, const int psi_stride, T *box)
template<typename T, typename Device>
void exx_batch_fft_plan_create (void **plan, const int nx, const int ny, const int nz, const int batch)
template<typename T, typename Device>
void exx_batch_fft_exec (void *plan, T *data, const bool forward)
template<typename T, typename Device>
void exx_batch_fft_plan_destroy (void **plan)
template<typename Real>
void gradient_harmonic (const int l, const int lm, const Real *q, Real *value)
 Evaluate a normalized real solid harmonic and its Cartesian derivatives.
template<typename Real>
Real gradient_interpolate (const Real *table, const Real position)
template<typename Real, typename Complex>
void gradient_element (const int ig, const int projector, const int npw, const int ld, const int nkb, const int nbeta, const int nq, const Real dq, const Real tpiba, const int *metadata, const Real *q, const Real *tab, const Real *derivative, const Complex *sk, Complex *out)
template<typename FPTYPE>
void Simpson_Integral (const int mesh, FPTYPE *func, const FPTYPE *rab, FPTYPE &asum)
 TYPED_TEST_SUITE (StressMggaTest, base::utils::ComplexTypes)
 TYPED_TEST (StressMggaTest, cal_stress_mgga_op)
template<typename T>
bool is_finite (const T &val)
template<>
bool is_finite (const std::complex< float > &val)
template<>
bool is_finite (const std::complex< double > &val)
template<typename Real, typename Device>
void get_exx_potential (const K_Vectors *kv, const ModulePW::PW_Basis_K *wfcpw, ModulePW::PW_Basis *rhopw_dev, Real *pot, double tpiba, bool gamma_extrapolation, double ucell_omega, int ik, int iq, bool is_stress, const CoulombParam &coulomb_param_in)
template<typename Real, typename Device>
void get_exx_stress_potential (const K_Vectors *kv, const ModulePW::PW_Basis_K *wfcpw, ModulePW::PW_Basis *rhopw_dev, Real *pot, double tpiba, bool gamma_extrapolation, double ucell_omega, int ik, int iq, const CoulombParam &coulomb_param_in)
double exx_divergence (Conv_Coulomb_Pot_K::Coulomb_Type coulomb_type, double erfc_omega, const K_Vectors *kv, const ModulePW::PW_Basis_K *wfcpw, ModulePW::PW_Basis *rhopw_dev, double tpiba, bool gamma_extrapolation, double ucell_omega)
template void get_exx_potential< float, base_device::DEVICE_CPU > (const K_Vectors *, const ModulePW::PW_Basis_K *, ModulePW::PW_Basis *, float *, double, bool, double, int, int, bool, const CoulombParam &)
template void get_exx_potential< double, base_device::DEVICE_CPU > (const K_Vectors *, const ModulePW::PW_Basis_K *, ModulePW::PW_Basis *, double *, double, bool, double, int, int, bool, const CoulombParam &)
template void get_exx_stress_potential< float, base_device::DEVICE_CPU > (const K_Vectors *, const ModulePW::PW_Basis_K *, ModulePW::PW_Basis *, float *, double, bool, double, int, int, const CoulombParam &)
template void get_exx_stress_potential< double, base_device::DEVICE_CPU > (const K_Vectors *, const ModulePW::PW_Basis_K *, ModulePW::PW_Basis *, double *, double, bool, double, int, int, const CoulombParam &)

Variables

constexpr int kHctTagSize = 14431
constexpr int kHctTagIndex = 14471
constexpr int kHctTagValue = 14533
template<typename T, typename Device>
std::vector< typename GetTypeReal< T >::type > OperatorEXXPW< T, Device >::fock_div = {}
template<typename T, typename Device>
std::vector< typename GetTypeReal< T >::type > OperatorEXXPW< T, Device >::erfc_div = {}

Enumeration Type Documentation

◆ calculation_type

enum class hamilt::calculation_type
strong
Enumerator
no 
pw_ekinetic 
pw_ekinetic_td 
pw_nonlocal 
pw_veff 
pw_meta 
pw_onsite 
pw_exx 
lcao_overlap 
lcao_fixed 
lcao_gint 
lcao_deepks 
lcao_exx 
lcao_dftu 
lcao_sc_lambda 
lcao_tddft_periodic 
lr_dmtrans_hxc 
lr_dmtrans_gxc 
lr_dmdiff_hxc 
lr_dmtrans_exx 
lr_dmdiff_exx 

Function Documentation

◆ _polynomial_interpolation()

template<typename FPTYPE>
__device__ FPTYPE hamilt::_polynomial_interpolation ( const FPTYPE * table,
const int & dim1,
const int & dim2,
const int & tab_2,
const int & tab_3,
const FPTYPE & table_interval,
const FPTYPE & x )
Here is the caller graph for this function:

◆ _polynomial_interpolation_nl()

template<typename FPTYPE>
__device__ FPTYPE hamilt::_polynomial_interpolation_nl ( const FPTYPE * table,
const int & dim1,
const int & dim2,
const int & tab_2,
const int & tab_3,
const FPTYPE & table_interval,
const FPTYPE & x )
Here is the caller graph for this function:

◆ build_gamma_ops()

template<typename TK, typename TR>
LcaoOpsBundle< TK, TR > hamilt::build_gamma_ops ( const UnitCell & ucell,
const Grid_Driver & grid_d,
const Parallel_Orbitals * paraV,
const BasisFlattenedIndexing & basis,
const Parallel_Blkcyclic & layout,
elecstate::Potential * pot_in,
const TwoCenterBundle & two_center_bundle,
const LCAO_Orbitals & orb,
module_dm::DensityMatrix< TK, double > * DM_in,
Plus_U_Base * p_dftu,
Setup_DeePKS< TK > & deepks,
const Input_para & inp,
const std::vector< std::string > & pot_register_in,
const K_Vectors * kv,
HS_Matrix_K< TK > * hsk,
HContainer< TR > * hR,
HContainer< TR > * sR )

build the operator chain for the gamma-only case (TK == double).

Appends overlap/kinetic/nonlocal/veff nodes (and optional DeePKS/DFTU) onto the buffers hsk/hR/sR. hR is gamma-fixed here.

Parameters
kvk-point list (kvec_d/isk read from it)
hsktarget H(k)/S(k) matrix buffer, already allocated by caller
hRtarget H(R) container, already allocated by caller
sRtarget S(R) container, already allocated by caller
Returns
LcaoOpsBundle with the chain head and DeePKS V_delta(R) handle
Here is the call graph for this function:
Here is the caller graph for this function:

◆ build_gamma_ops< double, double >()

template LcaoOpsBundle< double, double > hamilt::build_gamma_ops< double, double > ( const UnitCell & ,
const Grid_Driver & ,
const Parallel_Orbitals * ,
const BasisFlattenedIndexing & ,
const Parallel_Blkcyclic & ,
elecstate::Potential * ,
const TwoCenterBundle & ,
const LCAO_Orbitals & ,
module_dm::DensityMatrix< double, double > * ,
Plus_U_Base * ,
Setup_DeePKS< double > & ,
const Input_para & ,
const std::vector< std::string > & ,
const K_Vectors * ,
HS_Matrix_K< double > * ,
HContainer< double > * ,
HContainer< double > *  )

◆ build_gamma_ops< std::complex< double >, double >()

template LcaoOpsBundle< std::complex< double >, double > hamilt::build_gamma_ops< std::complex< double >, double > ( const UnitCell & ,
const Grid_Driver & ,
const Parallel_Orbitals * ,
const BasisFlattenedIndexing & ,
const Parallel_Blkcyclic & ,
elecstate::Potential * ,
const TwoCenterBundle & ,
const LCAO_Orbitals & ,
module_dm::DensityMatrix< std::complex< double >, double > * ,
Plus_U_Base * ,
Setup_DeePKS< std::complex< double > > & ,
const Input_para & ,
const std::vector< std::string > & ,
const K_Vectors * ,
HS_Matrix_K< std::complex< double > > * ,
HContainer< double > * ,
HContainer< double > *  )
Here is the call graph for this function:

◆ build_multik_ops()

template<typename TK, typename TR>
LcaoOpsBundle< TK, TR > hamilt::build_multik_ops ( const UnitCell & ucell,
const Grid_Driver & grid_d,
const Parallel_Orbitals * paraV,
const BasisFlattenedIndexing & basis,
const Parallel_Blkcyclic & layout,
elecstate::Potential * pot_in,
const TwoCenterBundle & two_center_bundle,
const LCAO_Orbitals & orb,
module_dm::DensityMatrix< TK, double > * DM_in,
Plus_U_Base * p_dftu,
Setup_DeePKS< TK > & deepks,
const Input_para & inp,
const std::vector< std::string > & pot_register_in,
const K_Vectors * kv,
HS_Matrix_K< TK > * hsk,
HContainer< TR > * hR,
HContainer< TR > * sR,
TD_info * td_info )

build the operator chain for the multi-k case (TK == complex<double>).

Appends veff/overlap/kinetic/nonlocal nodes (and optional DeePKS/TDDFT/ DFTU/spin-constrain) onto the buffers hsk/hR/sR.

Parameters
kvk-point list (kvec_d/isk read from it)
hsktarget H(k)/S(k) matrix buffer, already allocated by caller
hRtarget H(R) container, already allocated by caller
sRtarget S(R) container, already allocated by caller
Returns
LcaoOpsBundle with the chain head and DeePKS V_delta(R) handle
Here is the call graph for this function:
Here is the caller graph for this function:

◆ build_multik_ops< double, double >()

template LcaoOpsBundle< double, double > hamilt::build_multik_ops< double, double > ( const UnitCell & ,
const Grid_Driver & ,
const Parallel_Orbitals * ,
const BasisFlattenedIndexing & ,
const Parallel_Blkcyclic & ,
elecstate::Potential * ,
const TwoCenterBundle & ,
const LCAO_Orbitals & ,
module_dm::DensityMatrix< double, double > * ,
Plus_U_Base * ,
Setup_DeePKS< double > & ,
const Input_para & ,
const std::vector< std::string > & ,
const K_Vectors * ,
HS_Matrix_K< double > * ,
HContainer< double > * ,
HContainer< double > * ,
TD_info *  )

◆ build_multik_ops< std::complex< double >, double >()

template LcaoOpsBundle< std::complex< double >, double > hamilt::build_multik_ops< std::complex< double >, double > ( const UnitCell & ,
const Grid_Driver & ,
const Parallel_Orbitals * ,
const BasisFlattenedIndexing & ,
const Parallel_Blkcyclic & ,
elecstate::Potential * ,
const TwoCenterBundle & ,
const LCAO_Orbitals & ,
module_dm::DensityMatrix< std::complex< double >, double > * ,
Plus_U_Base * ,
Setup_DeePKS< std::complex< double > > & ,
const Input_para & ,
const std::vector< std::string > & ,
const K_Vectors * ,
HS_Matrix_K< std::complex< double > > * ,
HContainer< double > * ,
HContainer< double > * ,
TD_info *  )
Here is the call graph for this function:

◆ cal_overlap_block() [1/3]

template void hamilt::cal_overlap_block ( const UnitCell & ,
const TwoCenterIntegrator & ,
int ,
int ,
const std::vector< int > & ,
const std::vector< int > & ,
const ModuleBase::Vector3< double > & ,
double *  )

◆ cal_overlap_block() [2/3]

template void hamilt::cal_overlap_block ( const UnitCell & ,
const TwoCenterIntegrator & ,
int ,
int ,
const std::vector< int > & ,
const std::vector< int > & ,
const ModuleBase::Vector3< double > & ,
std::complex< double > *  )

◆ cal_overlap_block() [3/3]

template<typename TR>
void hamilt::cal_overlap_block ( const UnitCell & cell,
const TwoCenterIntegrator & integrator,
const int atom_i,
const int atom_j,
const std::vector< int > & row_offsets,
const std::vector< int > & col_offsets,
const ModuleBase::Vector3< double > & displacement,
TR * values )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ exx_batch_density_real()

template<typename T, typename Device>
void hamilt::exx_batch_density_real ( const int nbands,
const int nrxx,
const T * nk_real_all,
const T * mq_real,
const double omega,
T * out )
Here is the caller graph for this function:

◆ exx_batch_fft_exec()

template<typename T, typename Device>
void hamilt::exx_batch_fft_exec ( void * plan,
T * data,
const bool forward )
Here is the caller graph for this function:

◆ exx_batch_fft_plan_create()

template<typename T, typename Device>
void hamilt::exx_batch_fft_plan_create ( void ** plan,
const int nx,
const int ny,
const int nz,
const int batch )
Here is the caller graph for this function:

◆ exx_batch_fft_plan_destroy()

template<typename T, typename Device>
void hamilt::exx_batch_fft_plan_destroy ( void ** plan)
Here is the caller graph for this function:

◆ exx_batch_gather_accum()

template<typename T, typename Real, typename Device>
void hamilt::exx_batch_gather_accum ( const int nbands,
const int npwk,
const int nxyz,
const int * box_map,
const T * box,
const Real factor,
T * out,
const int out_stride )
Here is the caller graph for this function:

◆ exx_batch_gather_pw()

template<typename T, typename Device>
void hamilt::exx_batch_gather_pw ( const int nbands,
const int npw,
const int nxyz,
const int * box_map,
const T * box,
T * pw )
Here is the caller graph for this function:

◆ exx_batch_mul_pot()

template<typename T, typename Real, typename Device>
void hamilt::exx_batch_mul_pot ( const int nbands,
const int npw,
const Real * pot,
T * pw )
Here is the caller graph for this function:

◆ exx_batch_mul_real()

template<typename T, typename Device>
void hamilt::exx_batch_mul_real ( const int nbands,
const int nrxx,
const T * mq_real,
T * data )
Here is the caller graph for this function:

◆ exx_batch_scatter_pw()

template<typename T, typename Device>
void hamilt::exx_batch_scatter_pw ( const int nbands,
const int npw,
const int nxyz,
const int * box_map,
const T * pw,
T * box )
Here is the caller graph for this function:

◆ exx_batch_scatter_wfc()

template<typename T, typename Device>
void hamilt::exx_batch_scatter_wfc ( const int nbands,
const int npwk,
const int nxyz,
const int * map,
const T * psi,
const int psi_stride,
T * box )
Here is the caller graph for this function:

◆ exx_divergence()

double hamilt::exx_divergence ( Conv_Coulomb_Pot_K::Coulomb_Type coulomb_type,
double erfc_omega,
const K_Vectors * kv,
const ModulePW::PW_Basis_K * wfcpw,
ModulePW::PW_Basis * rhopw_dev,
double tpiba,
bool gamma_extrapolation,
double ucell_omega )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ folding_HR() [1/2]

void hamilt::folding_HR ( const hamilt::HContainer< double > & hR,
double * hk,
const ModuleBase::Vector3< double > & kvec_d_in,
const int hk_ld,
const int hk_type )
Here is the call graph for this function:

◆ folding_HR() [2/2]

template<typename TR>
void hamilt::folding_HR ( const hamilt::HContainer< TR > & hR,
std::complex< double > * hk,
const ModuleBase::Vector3< double > & kvec_d_in,
const int hk_ld,
const int hk_type )

calculate the Hk matrix with specific k vector

Parameters
hRthe HContainer of <I,J,R> atom pairs
hkthe data pointer of Hk matrix, the size of hk would be nrow * ncol
kvec_d_inthe k vector in Direct coordinate
hk_ldthe leading dimension number of hk, ncol for row-major, nrow for column-major
hk_typethe data-type of hk, 0 is row-major, 1 is column-major
Here is the call graph for this function:
Here is the caller graph for this function:

◆ folding_HR< double >()

template void hamilt::folding_HR< double > ( const hamilt::HContainer< double > & hR,
std::complex< double > * hk,
const ModuleBase::Vector3< double > & kvec_d_in,
const int ncol,
const int hk_type )

◆ folding_HR< std::complex< double > >()

template void hamilt::folding_HR< std::complex< double > > ( const hamilt::HContainer< std::complex< double > > & hR,
std::complex< double > * hk,
const ModuleBase::Vector3< double > & kvec_d_in,
const int ncol,
const int hk_type )
Here is the call graph for this function:

◆ gatherParallels() [1/3]

template void hamilt::gatherParallels ( const hamilt::HContainer< double > & hR_p,
hamilt::HContainer< double > * hR_s,
const int serial_rank )

◆ gatherParallels() [2/3]

template void hamilt::gatherParallels ( const hamilt::HContainer< std::complex< double > > & hR_p,
hamilt::HContainer< std::complex< double > > * hR_s,
const int serial_rank )

◆ gatherParallels() [3/3]

template<typename TR>
void hamilt::gatherParallels ( const hamilt::HContainer< TR > & hR_p,
hamilt::HContainer< TR > * hR_s,
const int serial_rank )

gather the HContainer from all parallel objects to target serial object the serial object should be empty before gather

Parameters
hR_pthe HContainer of <I,J,R> atom pairs in parallel object
hR_sthe empty HContainer of <I,J,R> atom pairs in serial object
serial_rankthe rank of target serial object
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_exx_potential()

template<typename Real, typename Device>
void hamilt::get_exx_potential ( const K_Vectors * kv,
const ModulePW::PW_Basis_K * wfcpw,
ModulePW::PW_Basis * rhopw_dev,
Real * pot,
double tpiba,
bool gamma_extrapolation,
double ucell_omega,
int ik,
int iq,
bool is_stress,
const CoulombParam & coulomb_param_in )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_exx_potential< double, base_device::DEVICE_CPU >()

template void hamilt::get_exx_potential< double, base_device::DEVICE_CPU > ( const K_Vectors * ,
const ModulePW::PW_Basis_K * ,
ModulePW::PW_Basis * ,
double * ,
double ,
bool ,
double ,
int ,
int ,
bool ,
const CoulombParam &  )

◆ get_exx_potential< float, base_device::DEVICE_CPU >()

template void hamilt::get_exx_potential< float, base_device::DEVICE_CPU > ( const K_Vectors * ,
const ModulePW::PW_Basis_K * ,
ModulePW::PW_Basis * ,
float * ,
double ,
bool ,
double ,
int ,
int ,
bool ,
const CoulombParam &  )

◆ get_exx_stress_potential()

template<typename Real, typename Device>
void hamilt::get_exx_stress_potential ( const K_Vectors * kv,
const ModulePW::PW_Basis_K * wfcpw,
ModulePW::PW_Basis * rhopw_dev,
Real * pot,
double tpiba,
bool gamma_extrapolation,
double ucell_omega,
int ik,
int iq,
const CoulombParam & coulomb_param_in )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_exx_stress_potential< double, base_device::DEVICE_CPU >()

template void hamilt::get_exx_stress_potential< double, base_device::DEVICE_CPU > ( const K_Vectors * ,
const ModulePW::PW_Basis_K * ,
ModulePW::PW_Basis * ,
double * ,
double ,
bool ,
double ,
int ,
int ,
const CoulombParam &  )

◆ get_exx_stress_potential< float, base_device::DEVICE_CPU >()

template void hamilt::get_exx_stress_potential< float, base_device::DEVICE_CPU > ( const K_Vectors * ,
const ModulePW::PW_Basis_K * ,
ModulePW::PW_Basis * ,
float * ,
double ,
bool ,
double ,
int ,
int ,
const CoulombParam &  )

◆ gradient_element()

template<typename Real, typename Complex>
void hamilt::gradient_element ( const int ig,
const int projector,
const int npw,
const int ld,
const int nkb,
const int nbeta,
const int nq,
const Real dq,
const Real tpiba,
const int * metadata,
const Real * q,
const Real * tab,
const Real * derivative,
const Complex * sk,
Complex * out )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ gradient_harmonic()

template<typename Real>
void hamilt::gradient_harmonic ( const int l,
const int lm,
const Real * q,
Real * value )

Evaluate a normalized real solid harmonic and its Cartesian derivatives.

Here is the caller graph for this function:

◆ gradient_interpolate()

template<typename Real>
Real hamilt::gradient_interpolate ( const Real * table,
const Real position )
Here is the caller graph for this function:

◆ is_finite() [1/3]

template<>
bool hamilt::is_finite ( const std::complex< double > & val)
inline

◆ is_finite() [2/3]

template<>
bool hamilt::is_finite ( const std::complex< float > & val)
inline

◆ is_finite() [3/3]

template<typename T>
bool hamilt::is_finite ( const T & val)
inline

◆ resize_spin_storage() [1/3]

template void hamilt::resize_spin_storage ( HContainer< double > & ,
const HContainer< double > & ,
std::vector< double > & ,
const int  )

◆ resize_spin_storage() [2/3]

template void hamilt::resize_spin_storage ( HContainer< std::complex< double > > & ,
const HContainer< std::complex< double > > & ,
std::vector< std::complex< double > > & ,
const int  )

◆ resize_spin_storage() [3/3]

template<typename T>
void hamilt::resize_spin_storage ( HContainer< T > & current,
const HContainer< T > & stored_layout,
std::vector< T > & storage,
const int current_spin )

Remap two-spin storage after an operator grows the active H(R). stored_layout describes the old buffer; current contains the assembled active spin. New blocks of the inactive spin are zero until its operators assemble them.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Simpson_Integral()

template<typename FPTYPE>
void hamilt::Simpson_Integral ( const int mesh,
FPTYPE * func,
const FPTYPE * rab,
FPTYPE & asum )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ transferParallels2Serial() [1/3]

template void hamilt::transferParallels2Serial ( const hamilt::HContainer< double > & hR_p,
hamilt::HContainer< double > * hR_s,
const int serial_rank )

◆ transferParallels2Serial() [2/3]

template void hamilt::transferParallels2Serial ( const hamilt::HContainer< std::complex< double > > & hR_p,
hamilt::HContainer< std::complex< double > > * hR_s,
const int serial_rank )

◆ transferParallels2Serial() [3/3]

template<typename TR>
void hamilt::transferParallels2Serial ( const hamilt::HContainer< TR > & hR_p,
hamilt::HContainer< TR > * hR_s,
const int serial_rank )

transfer the HContainer from parallel object to serial object

Parameters
hR_pthe HContainer of <I,J,R> atom pairs in parallel object
hR_sthe HContainer of <I,J,R> atom pairs in serial object
my_rankthe rank of current process
Here is the call graph for this function:
Here is the caller graph for this function:

◆ transferParallels2Serials() [1/3]

template void hamilt::transferParallels2Serials ( const hamilt::HContainer< double > & hR_p,
hamilt::HContainer< double > * hR_s )

◆ transferParallels2Serials() [2/3]

template void hamilt::transferParallels2Serials ( const hamilt::HContainer< std::complex< double > > & hR_p,
hamilt::HContainer< std::complex< double > > * hR_s )

◆ transferParallels2Serials() [3/3]

template<typename TR>
void hamilt::transferParallels2Serials ( const hamilt::HContainer< TR > & hR_p,
hamilt::HContainer< TR > * hR_s )

transfer the HContainer from all serial objects to all parallel objects

Parameters
hR_pthe HContainer of <I,J,R> atom pairs in parallel object
hR_sthe HContainer of <I,J,R> atom pairs in serial object
Here is the call graph for this function:
Here is the caller graph for this function:

◆ transferSerial2Parallels() [1/3]

template void hamilt::transferSerial2Parallels ( const hamilt::HContainer< double > & hR_s,
hamilt::HContainer< double > * hR_p,
const int serial_rank )

◆ transferSerial2Parallels() [2/3]

template void hamilt::transferSerial2Parallels ( const hamilt::HContainer< std::complex< double > > & hR_s,
hamilt::HContainer< std::complex< double > > * hR_p,
const int serial_rank )

◆ transferSerial2Parallels() [3/3]

template<typename TR>
void hamilt::transferSerial2Parallels ( const hamilt::HContainer< TR > & hR_s,
hamilt::HContainer< TR > * hR_p,
const int serial_rank )

transfer the HContainer from serial object to parallel object

Parameters
hR_sthe HContainer of <I,J,R> atom pairs in serial object
hR_pthe HContainer of <I,J,R> atom pairs in parallel object
my_rankthe rank of current process
Here is the call graph for this function:
Here is the caller graph for this function:

◆ transferSerials2Parallels() [1/3]

template void hamilt::transferSerials2Parallels ( const hamilt::HContainer< double > & hR_s,
hamilt::HContainer< double > * hR_p )

◆ transferSerials2Parallels() [2/3]

template void hamilt::transferSerials2Parallels ( const hamilt::HContainer< std::complex< double > > & hR_s,
hamilt::HContainer< std::complex< double > > * hR_p )

◆ transferSerials2Parallels() [3/3]

template<typename TR>
void hamilt::transferSerials2Parallels ( const hamilt::HContainer< TR > & hR_s,
hamilt::HContainer< TR > * hR_p )

transfer the HContainer from all serial objects to all parallel objects

Parameters
hR_sthe HContainer of <I,J,R> atom pairs in serial object
hR_pthe HContainer of <I,J,R> atom pairs in parallel object
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TYPED_TEST() [1/2]

hamilt::TYPED_TEST ( StressMggaTest ,
cal_stress_mgga_op  )
Here is the call graph for this function:

◆ TYPED_TEST() [2/2]

hamilt::TYPED_TEST ( XC_FunctionalOpTest ,
xc_functional_grad_wfc_op  )
Here is the call graph for this function:

◆ TYPED_TEST_SUITE() [1/2]

hamilt::TYPED_TEST_SUITE ( StressMggaTest ,
base::utils::ComplexTypes  )

◆ TYPED_TEST_SUITE() [2/2]

hamilt::TYPED_TEST_SUITE ( XC_FunctionalOpTest ,
base::utils::ComplexTypes  )

Variable Documentation

◆ kHctTagIndex

int hamilt::kHctTagIndex = 14471
constexpr

◆ kHctTagSize

int hamilt::kHctTagSize = 14431
constexpr

◆ kHctTagValue

int hamilt::kHctTagValue = 14533
constexpr

◆ OperatorEXXPW< T, Device >::erfc_div

template<typename T, typename Device>
std::vector<typename GetTypeReal<T>::type> hamilt::OperatorEXXPW< T, Device >::erfc_div = {}

◆ OperatorEXXPW< T, Device >::fock_div

template<typename T, typename Device>
std::vector<typename GetTypeReal<T>::type> hamilt::OperatorEXXPW< T, Device >::fock_div = {}