ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
hamilt::ProjectorGradient< Real, Device > Class Template Reference

One-k-point gradient workspace with versioned radial tables. More...

#include <projector_gradient.h>

Collaboration diagram for hamilt::ProjectorGradient< Real, Device >:

Public Member Functions

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.

Private Types

using Complex = std::complex<Real>

Private Member Functions

template<typename Value>
void reserve (ct::Tensor *tensor, const int64_t count)

Private Attributes

ct::Tensor radial_
ct::Tensor derivative_
ct::Tensor metadata_
ct::Tensor momentum_
ct::Tensor structure_
size_t version_ = 0
std::vector< Real > host_q_
std::vector< int > host_metadata_

Detailed Description

template<typename Real, typename Device>
class hamilt::ProjectorGradient< Real, Device >

One-k-point gradient workspace with versioned radial tables.

Member Typedef Documentation

◆ Complex

template<typename Real, typename Device>
using hamilt::ProjectorGradient< Real, Device >::Complex = std::complex<Real>
private

Member Function Documentation

◆ calculate()

template<typename Real, typename Device>
void hamilt::ProjectorGradient< Real, Device >::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.

◆ reserve()

template<typename Real, typename Device>
template<typename Value>
void hamilt::ProjectorGradient< Real, Device >::reserve ( ct::Tensor * tensor,
const int64_t count )
private
Here is the call graph for this function:

Member Data Documentation

◆ derivative_

template<typename Real, typename Device>
ct::Tensor hamilt::ProjectorGradient< Real, Device >::derivative_
private

◆ host_metadata_

template<typename Real, typename Device>
std::vector<int> hamilt::ProjectorGradient< Real, Device >::host_metadata_
private

◆ host_q_

template<typename Real, typename Device>
std::vector<Real> hamilt::ProjectorGradient< Real, Device >::host_q_
private

◆ metadata_

template<typename Real, typename Device>
ct::Tensor hamilt::ProjectorGradient< Real, Device >::metadata_
private

◆ momentum_

template<typename Real, typename Device>
ct::Tensor hamilt::ProjectorGradient< Real, Device >::momentum_
private

◆ radial_

template<typename Real, typename Device>
ct::Tensor hamilt::ProjectorGradient< Real, Device >::radial_
private

◆ structure_

template<typename Real, typename Device>
ct::Tensor hamilt::ProjectorGradient< Real, Device >::structure_
private

◆ version_

template<typename Real, typename Device>
size_t hamilt::ProjectorGradient< Real, Device >::version_ = 0
private

The documentation for this class was generated from the following files: