ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
dm_from_psi.h File Reference
#include "density_matrix.h"
#include "source_base/matrix.h"
#include "source_psi/psi.h"
Include dependency graph for dm_from_psi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  module_dm

Functions

void module_dm::dm_from_psi (const Parallel_Orbitals *ParaV, const ModuleBase::matrix &wg, const psi::Psi< double > &wfc, DensityMatrix< double, double > &DM)
 Calculate the k-point density matrix from wavefunctions for the Gamma-only case.
template<typename TR>
void module_dm::dm_from_psi (const Parallel_Orbitals *ParaV, const ModuleBase::matrix &wg, const psi::Psi< std::complex< double > > &wfc, DensityMatrix< std::complex< double >, TR > &DM)
 Calculate the k-point density matrix from wavefunctions for the multi-k case.
void module_dm::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).
void module_dm::dmk_from_psi (const Parallel_Orbitals *ParaV, const ModuleBase::matrix &wg, const int ik, const psi::Psi< std::complex< double > > &wfc, std::complex< double > *dmk_out)
 Calculate one k-point block of the density matrix (multi-k case).