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
11
12#include <complex>
13
14class Parallel_Blkcyclic; // Defined in source/source_base/parallel_blkcyc.h
15
16namespace module_rt
17{
18#ifdef __MPI
32void norm_psi(const Parallel_Blkcyclic& matrix_layout,
33 const Parallel_Blkcyclic& wfc_layout,
34 const Parallel_Blkcyclic& mo_repr_layout,
35 const int nband,
36 const int nlocal,
37 const std::complex<double>* Stmp,
38 std::complex<double>* psi_k,
39 std::ofstream& ofs_running,
40 const int print_matrix);
41
42void norm_psi_tensor(const Parallel_Blkcyclic& matrix_layout,
43 const Parallel_Blkcyclic& wfc_layout,
44 const Parallel_Blkcyclic& mo_repr_layout,
45 const int nband,
46 const int nlocal,
47 const ct::Tensor& Stmp,
48 ct::Tensor& psi_k,
49 std::ofstream& ofs_running,
50 const int print_matrix,
51 CublasMpResources& cublas_res);
52
53template <typename Device>
54void norm_psi_tensor_lapack(const int nband,
55 const int nlocal,
56 const ct::Tensor& Stmp,
57 ct::Tensor& psi_k,
58 std::ofstream& ofs_running,
59 const int print_matrix);
60
61#endif // __MPI
62} // namespace module_rt
63
64#endif
Parallel block-cyclic matrix distribution.
Definition parallel_blkcyc.h:25
Definition band_energy.cpp:21
void norm_psi(const Parallel_Blkcyclic &matrix_layout, const Parallel_Blkcyclic &wfc_layout, const Parallel_Blkcyclic &mo_repr_layout, 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:32
void norm_psi_tensor_lapack(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:513
void norm_psi_tensor(const Parallel_Blkcyclic &matrix_layout, const Parallel_Blkcyclic &wfc_layout, const Parallel_Blkcyclic &mo_repr_layout, 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:239
void print_matrix(std::ofstream &fp, T *matrix, int &nrow, int &ncol, bool row_first)
Definition test_diago_lapack.cpp:86