ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
norm_psi.h
Go to the documentation of this file.
1
6#ifndef NORM_PSI_H
7#define NORM_PSI_H
8
12
13#include <complex>
14
15namespace module_rt
16{
17#ifdef __MPI
29void norm_psi(const Parallel_Orbitals* pv,
30 const int nband,
31 const int nlocal,
32 const std::complex<double>* Stmp,
33 std::complex<double>* psi_k,
34 std::ofstream& ofs_running,
35 const int print_matrix);
36
38 const int nband,
39 const int nlocal,
40 const ct::Tensor& Stmp,
41 ct::Tensor& psi_k,
42 std::ofstream& ofs_running,
43 const int print_matrix,
44 CublasMpResources& cublas_res);
45
46template <typename Device>
48 const int nband,
49 const int nlocal,
50 const ct::Tensor& Stmp,
51 ct::Tensor& psi_k,
52 std::ofstream& ofs_running,
53 const int print_matrix);
54
55#endif // __MPI
56} // namespace module_rt
57
58#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 norm_psi(const Parallel_Orbitals *pv, const int nband, const int nlocal, const std::complex< double > *Stmp, std::complex< double > *psi_k, std::ofstream &ofs_running, const int print_matrix)
normalize the wave function
Definition norm_psi.cpp:29
void norm_psi_tensor_lapack(const Parallel_Orbitals *pv, const int nband, const int nlocal, const ct::Tensor &Stmp, ct::Tensor &psi_k, std::ofstream &ofs_running, const int print_matrix)
Definition norm_psi.cpp:500
void norm_psi_tensor(const Parallel_Orbitals *pv, const int nband, const int nlocal, const ct::Tensor &Stmp, ct::Tensor &psi_k, std::ofstream &ofs_running, const int print_matrix, CublasMpResources &cublas_res)
Definition norm_psi.cpp:233
Definition cublasmp_context.h:38