ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
middle_hamilt.h
Go to the documentation of this file.
1
6#ifndef MIDDLE_HAMILT_H
7#define MIDDLE_HAMILT_H
8
11
12#include <complex>
13
14namespace module_rt
15{
16#ifdef __MPI
28void half_Hmatrix(const Parallel_Orbitals* pv,
29 const int nband,
30 const int nlocal,
31 std::complex<double>* Htmp,
32 std::complex<double>* Stmp,
33 const std::complex<double>* H_laststep,
34 const std::complex<double>* S_laststep,
35 std::ofstream& ofs_running,
36 const int print_matrix);
37
39 const int nband,
40 const int nlocal,
41 ct::Tensor& Htmp,
42 ct::Tensor& Stmp,
43 const ct::Tensor& H_laststep,
44 const ct::Tensor& S_laststep,
45 std::ofstream& ofs_running,
46 const int print_matrix);
47
48template <typename Device>
50 const int nband,
51 const int nlocal,
52 ct::Tensor& Htmp,
53 ct::Tensor& Stmp,
54 const ct::Tensor& H_laststep,
55 const ct::Tensor& S_laststep,
56 std::ofstream& ofs_running,
57 const int print_matrix);
58
59#endif // __MPI
60} // namespace module_rt
61
62#endif
Definition parallel_orbitals.h:9
A multi-dimensional array of elements of a single data type.
Definition tensor.h:32
void print_matrix(std::ofstream &fp, T *matrix, int &nrow, int &ncol, bool row_first)
Definition diago_lapack_test.cpp:92
Definition band_energy.cpp:11
void half_Hmatrix(const Parallel_Orbitals *pv, const int nband, const int nlocal, std::complex< double > *Htmp, std::complex< double > *Stmp, const std::complex< double > *H_laststep, const std::complex< double > *S_laststep, std::ofstream &ofs_running, const int print_matrix)
compute H(t+dt/2)
Definition middle_hamilt.cpp:14
void half_Hmatrix_tensor(const Parallel_Orbitals *pv, const int nband, const int nlocal, ct::Tensor &Htmp, ct::Tensor &Stmp, const ct::Tensor &H_laststep, const ct::Tensor &S_laststep, std::ofstream &ofs_running, const int print_matrix)
Definition middle_hamilt.cpp:75
void half_Hmatrix_tensor_lapack(const Parallel_Orbitals *pv, const int nband, const int nlocal, ct::Tensor &Htmp, ct::Tensor &Stmp, const ct::Tensor &H_laststep, const ct::Tensor &S_laststep, std::ofstream &ofs_running, const int print_matrix)
Definition middle_hamilt.cpp:168