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
12
13#include <complex>
14
15namespace module_rt
16{
17#ifdef __MPI
28void compute_ekb(const Parallel_Orbitals* pv,
29 const int nband,
30 const int nlocal,
31 const std::complex<double>* Htmp,
32 const std::complex<double>* psi_k,
33 double* ekb,
34 std::ofstream& ofs_running);
35
37 const int nband,
38 const int nlocal,
39 const ct::Tensor& Htmp,
40 const ct::Tensor& psi_k,
41 ct::Tensor& ekb,
42 std::ofstream& ofs_running,
43 CublasMpResources& cublas_res);
44
45template <typename Device>
47 const int nband,
48 const int nlocal,
49 const ct::Tensor& Htmp,
50 const ct::Tensor& psi_k,
51 ct::Tensor& ekb,
52 std::ofstream& ofs_running);
53#endif // __MPI
54} // namespace module_rt
55#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:15
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, CublasMpResources &cublas_res)
Definition band_energy.cpp:166
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:395
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:26
Definition cublasmp_context.h:38