ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
deltaspin_lcao_mi.h
Go to the documentation of this file.
1
19#ifndef DELTASPIN_LCAO_MI_H
20#define DELTASPIN_LCAO_MI_H
21
22#ifdef __LCAO
23
24#include <vector>
25
27#include "source_base/matrix.h"
29
30#include "deltaspin_state.h"
31
33namespace module_dm
34{
35template <typename TK, typename TR>
36class DensityMatrix;
37}
38
39namespace spinconstrain
40{
41namespace lcao
42{
43
58void cal_mi_lcao(ScState& state,
59 hamilt::Operator<std::complex<double>>* p_operator,
60 module_dm::DensityMatrix<std::complex<double>, double>* dm,
61 const int& step,
62 bool print = false);
63
71std::vector<std::vector<std::vector<double>>> convert_orbital_matrix(
72 const ModuleBase::matrix& orbMulP,
73 const ScState& state);
74
88void calculate_mw_from_orbitals(const std::vector<std::vector<std::vector<double>>>& AorbMulP,
89 ScState& state);
90
115void collect_mw(ModuleBase::matrix& MecMulP,
116 const ModuleBase::ComplexMatrix& mud,
117 int nw,
118 int isk,
119 const ScState& state,
120 const Parallel_Orbitals* pv);
121
122} // namespace lcao
123} // namespace spinconstrain
124
125#endif // __LCAO
126#endif // DELTASPIN_LCAO_MI_H
Definition parallel_orbitals.h:16
DensityMatrix Class <TK,TR> = <double,double> for Gamma-only calculation <TK,TR> = <std::complex<doub...
Definition density_matrix.h:172
Constraint parameters and runtime state for the DeltaSpin (spin-constrained DFT) module.
Definition density_matrix.cpp:13
Definition deltaspin_init.cpp:32