ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
deepks_orbpre.h
Go to the documentation of this file.
1#ifndef DEEPKS_ORBPRE_H
2#define DEEPKS_ORBPRE_H
3
4#ifdef __MLALGO
5
6#include "deepks_param.h"
10#include "source_base/timer.h"
15
16#include <torch/script.h>
17#include <torch/torch.h>
18
19namespace DeePKS_domain
20{
21//------------------------
22// deepks_orbpre.cpp
23//------------------------
24
25// This file contains one subroutine for calculating orbital_precalc,
26// which is defind as gevdm * dm_hl * overlap * overlap
27
28template <typename TK, typename TH>
29void cal_orbital_precalc(const std::vector<TH>& dm_hl,
30 const int nat,
31 const int nks,
32 const DeePKS_Param& deepks_param,
33 const std::vector<ModuleBase::Vector3<double>>& kvec_d,
34 const std::vector<hamilt::HContainer<double>*> phialpha,
35 const std::vector<torch::Tensor> gevdm,
36 const UnitCell& ucell,
37 const LCAO_Orbitals& orb,
38 const Parallel_Orbitals& pv,
39 const Grid_Driver& GridD,
40 torch::Tensor& orbital_precalc);
41} // namespace DeePKS_domain
42#endif
43#endif
Definition deepks_basic.h:12
void cal_orbital_precalc(const std::vector< TH > &dm_hl, const int nat, const int nks, const DeePKS_Param &deepks_param, const std::vector< ModuleBase::Vector3< double > > &kvec_d, const std::vector< hamilt::HContainer< double > * > phialpha, const std::vector< torch::Tensor > gevdm, const UnitCell &ucell, const LCAO_Orbitals &orb, const Parallel_Orbitals &pv, const Grid_Driver &GridD, torch::Tensor &orbital_precalc)
Definition deepks_orbpre.cpp:20
Grid_Driver class for neighbor search interface.