ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
spar_exx.h
Go to the documentation of this file.
1#ifndef SPARSE_FORMAT_EXX_H
2#define SPARSE_FORMAT_EXX_H
3
4#ifdef __EXX
5
6// --------------------------------------------------------
7// Header files - minimal set for declaration only
8// --------------------------------------------------------
9
10#include <RI/global/Tensor.h>
11#include <array>
12#include <map>
13#include <vector>
14
18
19// --------------------------------------------------------
20// Namespace - merged into one block
21// --------------------------------------------------------
22
23namespace sparse_format
24{
25
41template <typename Tdata>
42void cal_HR_exx(
43 const UnitCell& ucell,
44 const Parallel_Orbitals& pv,
45 LCAO_HS_Arrays& HS_Arrays,
46 const int& current_spin,
47 const double& sparse_thr,
48 const int (&nmp)[3],
49 const std::vector<std::map<int, std::map<std::pair<int, std::array<int, 3>>, RI::Tensor<Tdata>>>>& Hexxs,
50 const double hybrid_alpha);
51
52// Explicit instantiations for double and complex<double> types
53extern template void cal_HR_exx<double>(
54 const UnitCell& ucell,
55 const Parallel_Orbitals& pv,
56 LCAO_HS_Arrays& HS_Arrays,
57 const int& current_spin,
58 const double& sparse_thr,
59 const int (&nmp)[3],
60 const std::vector<std::map<int, std::map<std::pair<int, std::array<int, 3>>, RI::Tensor<double>>>>& Hexxs,
61 const double hybrid_alpha);
62
63extern template void cal_HR_exx<std::complex<double>>(
64 const UnitCell& ucell,
65 const Parallel_Orbitals& pv,
66 LCAO_HS_Arrays& HS_Arrays,
67 const int& current_spin,
68 const double& sparse_thr,
69 const int (&nmp)[3],
70 const std::vector<std::map<int, std::map<std::pair<int, std::array<int, 3>>, RI::Tensor<std::complex<double>>>>>& Hexxs,
71 const double hybrid_alpha);
72
73}
74
75#endif // __EXX
76#endif // SPARSE_FORMAT_EXX_H
Definition spar_dh.h:14