ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
dm_from_psi.h
Go to the documentation of this file.
1#ifndef DM_FROM_PSI_H
2#define DM_FROM_PSI_H
3
4#include "density_matrix.h"
6#include "source_psi/psi.h"
7
8namespace module_dm
9{
22void dm_from_psi(const Parallel_Orbitals* ParaV,
23 const ModuleBase::matrix& wg,
24 const psi::Psi<double>& wfc,
26
44template <typename TR>
45void dm_from_psi(const Parallel_Orbitals* ParaV,
46 const ModuleBase::matrix& wg,
47 const psi::Psi<std::complex<double>>& wfc,
48 DensityMatrix<std::complex<double>, TR>& DM);
49
64void dmk_from_psi(const Parallel_Orbitals* ParaV,
65 const ModuleBase::matrix& wg,
66 const int ik,
67 const psi::Psi<double>& wfc,
68 double* dmk_out);
69
83void dmk_from_psi(const Parallel_Orbitals* ParaV,
84 const ModuleBase::matrix& wg,
85 const int ik,
86 const psi::Psi<std::complex<double>>& wfc,
87 std::complex<double>* dmk_out);
88} // namespace module_dm
89#endif
DensityMatrix Class <TK,TR> = <double,double> for Gamma-only calculation <TK,TR> = <std::complex<doub...
Definition density_matrix.h:172
Definition density_matrix.cpp:13
void dmk_from_psi(const Parallel_Orbitals *ParaV, const ModuleBase::matrix &wg, const int ik, const psi::Psi< double > &wfc, double *dmk_out)
Calculate one k-point block of the density matrix (Gamma-only case).
Definition dm_from_psi.cpp:308
void dm_from_psi(const Parallel_Orbitals *ParaV, const ModuleBase::matrix &wg, const psi::Psi< double > &wfc, module_dm::DensityMatrix< double, double > &DM)
Calculate the k-point density matrix from wavefunctions for the Gamma-only case.
Definition dm_from_psi.cpp:260