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
13
14#include <complex>
15
16namespace module_rt
17{
18#ifdef __MPI
30void upsi(const Parallel_Orbitals* pv,
31 const int nband,
32 const int nlocal,
33 const std::complex<double>* U_operator,
34 const std::complex<double>* psi_k_laststep,
35 std::complex<double>* psi_k,
36 std::ofstream& ofs_running,
37 const int print_matrix);
38
39void upsi_tensor(const Parallel_Orbitals* pv,
40 const int nband,
41 const int nlocal,
42 const ct::Tensor& U_operator,
43 const ct::Tensor& psi_k_laststep,
44 ct::Tensor& psi_k,
45 std::ofstream& ofs_running,
46 const int print_matrix,
47 CublasMpResources& cublas_res);
48
49template <typename Device>
51 const int nband,
52 const int nlocal,
53 const ct::Tensor& U_operator,
54 const ct::Tensor& psi_k_laststep,
55 ct::Tensor& psi_k,
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:15
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, CublasMpResources &cublas_res)
Definition upsi.cpp:91
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:221
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:14
Definition cublasmp_context.h:38