16int uspp_becsum_size(
const UnitCell& ucell,
const pseudopot_cell_vnl& ppcell,
const int nspin);
19template <
typename T,
typename Device>
40 const T* coefficients,
44 const std::vector<double>& weights,
45 std::vector<double>* becsum);
52 std::unique_ptr<Workspace>
work_;
67 const std::vector<double>& becsum,
68 std::complex<double>** rhog);
A class which can convert a function of "r" to the corresponding linear superposition of plane waves ...
Definition pw_basis.h:60
Provide the basic information about unitcell.
Definition unitcell.h:16
Definition uspp_density.cpp:25
UsppProjector(const UnitCell &ucell, const pseudopot_cell_vnl &ppcell, const int nbands)
Bind cell/projectors and allocate storage for a block of nbands states.
Definition uspp_density.cpp:49
void accumulate(const int ik, const T *coefficients, const int stride, const int npw, const int spin, const std::vector< double > &weights, std::vector< double > *becsum)
Add weighted projector products to the caller's packed coefficients.
Definition uspp_density.cpp:59
const int nbands_
Definition uspp_density.h:50
std::unique_ptr< Workspace > work_
Definition uspp_density.h:52
const pseudopot_cell_vnl & ppcell_
Definition uspp_density.h:49
const UnitCell & ucell_
Definition uspp_density.h:48
#define T
Definition exp.cpp:237
Definition read_atoms_hlp_test.cpp:13
int uspp_becsum_size(const UnitCell &ucell, const pseudopot_cell_vnl &ppcell, const int nspin)
Size of the canonical [spin][atom][packed projector pair] storage.
Definition uspp_density.cpp:16
void add_uspp_density(const UnitCell &ucell, const pseudopot_cell_vnl &ppcell, const ModulePW::PW_Basis &basis, const int nspin, const std::vector< double > &becsum, std::complex< double > **rhog)
Add USPP augmentation to caller-owned dense-grid reciprocal densities. becsum uses i <= j pairs,...
Definition uspp_density.cpp:140