|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
Reusable projection storage and device contraction for a velocity operator. More...
#include <velocity_workspace.h>
Public Member Functions | |
| Complex * | prepare (const std::int64_t count) |
| Reserve four input and four output projector blocks. | |
| void | contract (const UnitCell &cell, const pseudopot_cell_vnl &pp, const int spin, const int bands, const int npol, const Real scale, const ModulePW::PW_Basis_K &basis, Complex *buffer) |
| Reduce four projection blocks and contract D on their native device; bands counts spin-component columns. | |
Private Types | |
| using | Complex = std::complex<Real> |
Private Attributes | |
| ct::Tensor | coefficients_ |
| std::vector< Complex > | host_ |
| std::int64_t | capacity_ = 0 |
Reusable projection storage and device contraction for a velocity operator.
|
private |
| void hamilt::VelocityWorkspace< Real, Device >::contract | ( | const UnitCell & | cell, |
| const pseudopot_cell_vnl & | pp, | ||
| const int | spin, | ||
| const int | bands, | ||
| const int | npol, | ||
| const Real | scale, | ||
| const ModulePW::PW_Basis_K & | basis, | ||
| Complex * | buffer ) |
Reduce four projection blocks and contract D on their native device; bands counts spin-component columns.
| std::complex< Real > * hamilt::VelocityWorkspace< Real, Device >::prepare | ( | const std::int64_t | count | ) |
Reserve four input and four output projector blocks.
|
private |
|
private |
|
private |