ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
projector_gradient.h
Go to the documentation of this file.
1#ifndef PW_PROJECTOR_GRADIENT_H
2#define PW_PROJECTOR_GRADIENT_H
5
6namespace hamilt
7{
9template <typename Real, typename Device>
11{
12 private:
13 using Complex = std::complex<Real>;
19 size_t version_ = 0;
20 std::vector<Real> host_q_;
21 std::vector<int> host_metadata_;
22
23 template <typename Value>
24 void reserve(ct::Tensor *tensor, const int64_t count);
25
26 public:
28 void calculate(
30 const UnitCell &cell,
31 const ModulePW::PW_Basis_K &basis,
32 const int ik,
35};
36} // namespace hamilt
37#endif
3 elements vector
Definition vector3.h:21
Special pw_basis class. It includes different k-points.
Definition pw_basis_k.h:56
Provide the basic information about unitcell.
Definition unitcell.h:16
A multi-dimensional array of elements of a single data type.
Definition tensor.h:32
One-k-point gradient workspace with versioned radial tables.
Definition projector_gradient.h:11
void calculate(pseudopot_cell_vnl *pp, const UnitCell &cell, const ModulePW::PW_Basis_K &basis, const int ik, const ModuleBase::Vector3< double > &A, Complex *output)
Refresh the shifted gradient in native precision and device storage.
Definition projector_gradient.cpp:25
size_t version_
Definition projector_gradient.h:19
ct::Tensor structure_
Definition projector_gradient.h:18
ct::Tensor derivative_
Definition projector_gradient.h:15
ct::Tensor momentum_
Definition projector_gradient.h:17
ct::Tensor radial_
Definition projector_gradient.h:14
ct::Tensor metadata_
Definition projector_gradient.h:16
void reserve(ct::Tensor *tensor, const int64_t count)
Definition projector_gradient.cpp:13
std::vector< int > host_metadata_
Definition projector_gradient.h:21
std::vector< Real > host_q_
Definition projector_gradient.h:20
std::complex< Real > Complex
Definition projector_gradient.h:13
Definition output.h:13
Definition vnl_pw.h:23
Definition wf_op.cpp:6