Owning cache of PW subspace H/S/becp data plus the lambda snapshot.
More...
#include <deltaspin_pw_cache.h>
|
| | SubspaceCache ()=default |
| | SubspaceCache (const SubspaceCache &)=delete |
| SubspaceCache & | operator= (const SubspaceCache &)=delete |
| bool | allocated () const |
| | True when the subspace buffers are allocated.
|
| std::vector< ModuleBase::Vector3< double > > & | lambda_in_sub () |
| | Lambda values captured when the cache was filled.
|
| const std::vector< ModuleBase::Vector3< double > > & | lambda_in_sub () const |
| std::complex< double > * | h () |
| | Raw base pointers (needed by hsolver subspace ops and GPU memcpy).
|
| std::complex< double > * | s () |
| std::complex< double > * | becp () |
| std::complex< double > * | h_k (int ik, int nbands) |
| | Per-k-point views.
|
| std::complex< double > * | s_k (int ik, int nbands) |
| std::complex< double > * | becp_k (int ik, int size_becp) |
| void | allocate_cpu (int nbands, int nk, int size_becp) |
| | Allocate the three buffers on the host (CPU path) with new[]. No-op if already allocated.
|
| void | release_cpu () |
| | Release the host (CPU) buffers with delete[].
|
|
| std::complex< double > * | sub_h_save_ = nullptr |
| | Cached subspace Hamiltonian for all k-points.
|
| std::complex< double > * | sub_s_save_ = nullptr |
| | Cached subspace overlap matrix for all k-points.
|
| std::complex< double > * | becp_save_ = nullptr |
| | Cached becp coefficients for all k-points.
|
| std::vector< ModuleBase::Vector3< double > > | lambda_in_sub_ |
| | Lambda when the cache was saved.
|
Owning cache of PW subspace H/S/becp data plus the lambda snapshot.
The buffer element type is std::complex<double> because the PW DeltaSpin path is always instantiated on complex wavefunctions; the legacy TK=double stub never allocates it.
◆ SubspaceCache() [1/2]
| spinconstrain::pw::SubspaceCache::SubspaceCache |
( |
| ) |
|
|
default |
◆ SubspaceCache() [2/2]
| spinconstrain::pw::SubspaceCache::SubspaceCache |
( |
const SubspaceCache & | | ) |
|
|
delete |
◆ allocate_cpu()
| void spinconstrain::pw::SubspaceCache::allocate_cpu |
( |
int | nbands, |
|
|
int | nk, |
|
|
int | size_becp ) |
|
inline |
Allocate the three buffers on the host (CPU path) with new[]. No-op if already allocated.
◆ allocated()
| bool spinconstrain::pw::SubspaceCache::allocated |
( |
| ) |
const |
|
inline |
True when the subspace buffers are allocated.
◆ becp()
| std::complex< double > * spinconstrain::pw::SubspaceCache::becp |
( |
| ) |
|
|
inline |
◆ becp_k()
| std::complex< double > * spinconstrain::pw::SubspaceCache::becp_k |
( |
int | ik, |
|
|
int | size_becp ) |
|
inline |
◆ h()
| std::complex< double > * spinconstrain::pw::SubspaceCache::h |
( |
| ) |
|
|
inline |
Raw base pointers (needed by hsolver subspace ops and GPU memcpy).
◆ h_k()
| std::complex< double > * spinconstrain::pw::SubspaceCache::h_k |
( |
int | ik, |
|
|
int | nbands ) |
|
inline |
◆ lambda_in_sub() [1/2]
| std::vector< ModuleBase::Vector3< double > > & spinconstrain::pw::SubspaceCache::lambda_in_sub |
( |
| ) |
|
|
inline |
Lambda values captured when the cache was filled.
◆ lambda_in_sub() [2/2]
| const std::vector< ModuleBase::Vector3< double > > & spinconstrain::pw::SubspaceCache::lambda_in_sub |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ release_cpu()
| void spinconstrain::pw::SubspaceCache::release_cpu |
( |
| ) |
|
|
inline |
Release the host (CPU) buffers with delete[].
◆ s()
| std::complex< double > * spinconstrain::pw::SubspaceCache::s |
( |
| ) |
|
|
inline |
◆ s_k()
| std::complex< double > * spinconstrain::pw::SubspaceCache::s_k |
( |
int | ik, |
|
|
int | nbands ) |
|
inline |
◆ becp_save_
| std::complex<double>* spinconstrain::pw::SubspaceCache::becp_save_ = nullptr |
|
private |
Cached becp coefficients for all k-points.
◆ lambda_in_sub_
Lambda when the cache was saved.
◆ sub_h_save_
| std::complex<double>* spinconstrain::pw::SubspaceCache::sub_h_save_ = nullptr |
|
private |
Cached subspace Hamiltonian for all k-points.
◆ sub_s_save_
| std::complex<double>* spinconstrain::pw::SubspaceCache::sub_s_save_ = nullptr |
|
private |
Cached subspace overlap matrix for all k-points.
The documentation for this class was generated from the following file:
- /home/runner/work/abacus-develop/abacus-develop/source/source_lcao/module_deltaspin/deltaspin_pw_cache.h