ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
upsi.h
Go to the documentation of this file.
1
7#ifndef UPSI_H
8#define UPSI_H
9
12
13#include <complex>
14
15namespace module_rt
16{
17#ifdef __MPI
29void upsi(const Parallel_Orbitals* pv,
30 const int nband,
31 const int nlocal,
32 const std::complex<double>* U_operator,
33 const std::complex<double>* psi_k_laststep,
34 std::complex<double>* psi_k,
35 std::ofstream& ofs_running,
36 const int print_matrix);
37
38void upsi_tensor(const Parallel_Orbitals* pv,
39 const int nband,
40 const int nlocal,
41 const ct::Tensor& U_operator,
42 const ct::Tensor& psi_k_laststep,
43 ct::Tensor& psi_k,
44 std::ofstream& ofs_running,
45 const int print_matrix);
46
47template <typename Device>
49 const int nband,
50 const int nlocal,
51 const ct::Tensor& U_operator,
52 const ct::Tensor& psi_k_laststep,
53 ct::Tensor& psi_k,
54 std::ofstream& ofs_running,
55 const int print_matrix);
56
57#endif // __MPI
58} // namespace module_rt
59
60#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 upsi_tensor_lapack(const Parallel_Orbitals *pv, const int nband, const int nlocal, const ct::Tensor &U_operator, const ct::Tensor &psi_k_laststep, ct::Tensor &psi_k, std::ofstream &ofs_running, const int print_matrix)
Definition upsi.cpp:167
void upsi_tensor(const Parallel_Orbitals *pv, const int nband, const int nlocal, const ct::Tensor &U_operator, const ct::Tensor &psi_k_laststep, ct::Tensor &psi_k, std::ofstream &ofs_running, const int print_matrix)
Definition upsi.cpp:89
void upsi(const Parallel_Orbitals *pv, const int nband, const int nlocal, const std::complex< double > *U_operator, const std::complex< double > *psi_k_laststep, std::complex< double > *psi_k, std::ofstream &ofs_running, const int print_matrix)
apply U_operator to the wave function of the previous step for new wave function
Definition upsi.cpp:12