ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
band_energy.h
Go to the documentation of this file.
1
6#ifndef BANDENERGY_H
7#define BANDENERGY_H
8
11
12#include <complex>
13
14namespace module_rt
15{
16#ifdef __MPI
27void compute_ekb(const Parallel_Orbitals* pv,
28 const int nband,
29 const int nlocal,
30 const std::complex<double>* Htmp,
31 const std::complex<double>* psi_k,
32 double* ekb,
33 std::ofstream& ofs_running);
34
36 const int nband,
37 const int nlocal,
38 const ct::Tensor& Htmp,
39 const ct::Tensor& psi_k,
40 ct::Tensor& ekb,
41 std::ofstream& ofs_running);
42
43template <typename Device>
45 const int nband,
46 const int nlocal,
47 const ct::Tensor& Htmp,
48 const ct::Tensor& psi_k,
49 ct::Tensor& ekb,
50 std::ofstream& ofs_running);
51#endif // __MPI
52} // namespace module_rt
53#endif
Definition parallel_orbitals.h:9
A multi-dimensional array of elements of a single data type.
Definition tensor.h:32
Definition band_energy.cpp:11
void compute_ekb_tensor(const Parallel_Orbitals *pv, const int nband, const int nlocal, const ct::Tensor &Htmp, const ct::Tensor &psi_k, ct::Tensor &ekb, std::ofstream &ofs_running)
Definition band_energy.cpp:162
void compute_ekb_tensor_lapack(const Parallel_Orbitals *pv, const int nband, const int nlocal, const ct::Tensor &Htmp, const ct::Tensor &psi_k, ct::Tensor &ekb, std::ofstream &ofs_running)
Definition band_energy.cpp:305
void compute_ekb(const Parallel_Orbitals *pv, const int nband, const int nlocal, const std::complex< double > *Htmp, const std::complex< double > *psi_k, double *ekb, std::ofstream &ofs_running)
compute band energy ekb <psi_i|H|psi_i>
Definition band_energy.cpp:22