21void set_para2d_MO(
const Parallel_Orbitals& pv,
const int nbands, Parallel_Blkcyclic& p2d);
24inline double get_real(
const std::complex<double>& c)
45std::vector<T>
cVc(
const T* V,
62 const std::vector<T>& mat_mo,
74 const std::vector<T>& mat_mo,
91 const std::vector<std::vector<double>>& e_orb,
92 const std::string& out_name,
93 const std::string& header,
94 const std::string& global_out_dir,
95 const bool app =
false);
104 const int out_app_flag);
113 const double etot_eV,
114 const std::string& term_symbol,
115 const std::string& time_stamp);
Class for k-points management.
Definition klist.h:20
Parallel block-cyclic matrix distribution.
Definition parallel_blkcyc.h:25
Definition parallel_orbitals.h:16
#define T
Definition exp.cpp:237
Internal helpers shared by the R-space sparse text writers. Declared here (instead of duplicated in e...
Definition csr_reader.cpp:8
void write_orb_energy(const K_Vectors &kv, const int nspin0, const int nbands, const std::vector< std::vector< double > > &e_orb, const std::string &out_name, const std::string &header, const std::string &global_out_dir, const bool app)
Write orbital energies to file in LibRPA format.
Definition vxc_op_tools.cpp:103
double all_band_energy(const int ik, const std::vector< T > &mat_mo, const Parallel_Blkcyclic &p2d, const ModuleBase::matrix &wg)
Sum over bands with occupation weights.
Definition vxc_op_tools.cpp:61
double get_real(const std::complex< double > &c)
Extract real part (for complex numbers).
Definition vxc_op_tools.h:24
std::vector< T > cVc(const T *V, const T *c, const int nbasis, const int nbands, const Parallel_Orbitals &pv, const Parallel_Blkcyclic &p2d)
Compute c^dagger * V * c in MO basis.
Definition vxc_op_tools.cpp:24
void set_para2d_MO(const Parallel_Orbitals &pv, const int nbands, Parallel_Blkcyclic &p2d)
Set up a 2D parallel distribution for MO-space matrices (nbands x nbands).
Definition vxc_op_tools.cpp:14
std::string eband_filename(const std::string &stem, const int istep, const int out_app_flag)
Compose the name of a band-decomposed energy file.
Definition vxc_op_tools.cpp:136
std::string build_eband_header(const int istep, const double etot_eV, const std::string &term_symbol, const std::string &time_stamp)
Build the five comment lines preceding band-decomposed energy data.
Definition vxc_op_tools.cpp:150
std::vector< double > orbital_energy(const int ik, const int nbands, const std::vector< T > &mat_mo, const Parallel_Blkcyclic &p2d)
Extract diagonal elements (orbital energies) from MO matrix.
Definition vxc_op_tools.cpp:82