ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
lr_util_hcontainer.h File Reference
Include dependency graph for lr_util_hcontainer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  LR_Util

Typedefs

template<typename T>
using LR_Util::Real = typename GetTypeReal<T>::type

Functions

template<typename TR>
void LR_Util::print_HR (const hamilt::HContainer< TR > &HR, const std::string &label, const double &threshold=1e-10)
template<typename TK, typename TR>
void LR_Util::print_DMR (const module_dm::DensityMatrix< TK, TR > &DMR, const std::string &label, const double &threshold=1e-10)
template<typename TR_from, typename TR_to>
void LR_Util::copy_hcontainer_real_imag_part (const hamilt::HContainer< TR_from > &HR, hamilt::HContainer< TR_to > &HR_real, const bool get_imag)
template<typename T>
void LR_Util::get_DMR_real_imag_part (const module_dm::DensityMatrix< T, T > &DMR, module_dm::DensityMatrix< T, Real< T > > &DMR_real, const char &type='R')
template<typename T>
void LR_Util::get_DMR_real_imag_part (const module_dm::DensityMatrix< T, T > &DMR, module_dm::DensityMatrix< T, Real< T > > &DMR_real, const int &is, const char &type='R')
void LR_Util::set_HR_real_imag_part (const hamilt::HContainer< double > &HR_real, hamilt::HContainer< std::complex< double > > &HR, const char &type)
template<typename T, typename TR>
void LR_Util::initialize_HR (hamilt::HContainer< TR > &hR, const UnitCell &ucell, const Grid_Driver &gd, const std::vector< double > &orb_cutoff)
template<typename T, typename TR>
void LR_Util::initialize_DMR (module_dm::DensityMatrix< T, TR > &dm, const Parallel_Orbitals &pmat, const UnitCell &ucell, const Grid_Driver &gd, const std::vector< double > &orb_cutoff)
template<typename TR1, typename TR2>
TR1 LR_Util::dot_R_matrix (const hamilt::HContainer< TR1 > &h1, const hamilt::HContainer< TR2 > &h2)
 $\sum_{uvR} H1_{uv}(R) H2_{uv}(R)$
template<typename TK>
void LR_Util::transpose_DMR (module_dm::DensityMatrix< TK, double > &dm, const Parallel_Orbitals &pv)
template<typename TK>
void LR_Util::transpose_DMR (module_dm::DensityMatrix< TK, std::complex< double > > &dm, const Parallel_Orbitals &pv)
template<typename TK, typename TR>
module_dm::DensityMatrix< TK, TR > LR_Util::build_dm_from_dmk (const std::vector< ct::Tensor > &dmk, const Parallel_Orbitals &pmat, const int &nk, const std::vector< ModuleBase::Vector3< double > > &kvec_d, const UnitCell &ucell, const Grid_Driver &gd, const std::vector< double > &orb_cutoff, const bool symmetrize=false, const bool cal_dmr=true, const bool transpose=false)
template<typename TK, typename TR>
module_dm::DensityMatrix< TK, TR > LR_Util::build_dm_from_dmk_spin (const std::vector< std::vector< ct::Tensor > > &dmk, const Parallel_Orbitals &pmat, const int &nk, const std::vector< ModuleBase::Vector3< double > > &kvec_d, const UnitCell &ucell, const Grid_Driver &gd, const std::vector< double > &orb_cutoff, const bool symmetrize=false, const bool cal_dmr=true)
 Spin-resolved counterpart of build_dm_from_dmk: one dmk list per spin channel.
template<typename TR>
void LR_Util::save_HR (const hamilt::HContainer< TR > &hR, const std::string &filename, const Parallel_Orbitals &pv, const std::string &out_dir, const double sparse_thr, std::ostream &running_log)
template<typename TK, typename TR>
void LR_Util::save_DMR (const module_dm::DensityMatrix< TK, TR > &dm, const std::string &filename, const Parallel_Orbitals &pv, const std::string &out_dir, const double sparse_thr, std::ostream &running_log)