ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Private Member Functions | List of all members
OperatorMock< T > Class Template Reference

#include <diago_mock.h>

Inheritance diagram for OperatorMock< T >:
Collaboration diagram for OperatorMock< T >:

Private Member Functions

 ~OperatorMock ()
 
virtual void act (const int nbands, const int nbasis, const int npol, const T *tmpsi_in, T *tmhpsi, const int ngk_ik=0, const bool is_first_node=false) const
 
void act (const int nbands, const int nbasis, const int npol, const double *tmpsi_in, double *tmhpsi, const int ngk_ik, const bool is_first_node) const
 
void act (const int nbands, const int nbasis, const int npol, const std::complex< double > *tmpsi_in, std::complex< double > *tmhpsi, const int ngk_ik, const bool is_first_node) const
 
void act (const int nbands, const int nbasis, const int npol, const std::complex< float > *tmpsi_in, std::complex< float > *tmhpsi, const int ngk_ik, const bool is_first_node) const
 

Additional Inherited Members

- Public Types inherited from hamilt::Operator< T, Device >
typedef std::tuple< const psi::Psi< T, Device > *, const psi::Range, T * > hpsi_info
 
- Public Member Functions inherited from hamilt::Operator< T, Device >
 Operator ()
 
virtual ~Operator ()
 
virtual hpsi_info hPsi (hpsi_info &input) const
 
virtual void init (const int ik_in)
 
virtual void add (Operator *next)
 
virtual int get_ik () const
 
virtual void act (const psi::Psi< T, Device > &psi_in, psi::Psi< T, Device > &psi_out, const int nbands) const
 
int get_act_type () const
 
calculation_type get_cal_type () const
 
- Public Attributes inherited from hamilt::Operator< T, Device >
Operatornext_op = nullptr
 interface type 3: return a Psi-type HPsi
 
- Protected Types inherited from hamilt::Operator< T, Device >
using set_memory_op = base_device::memory::set_memory_op< T, Device >
 
- Protected Member Functions inherited from hamilt::Operator< T, Device >
Tget_hpsi (const hpsi_info &info) const
 
- Protected Attributes inherited from hamilt::Operator< T, Device >
int ik = 0
 
int act_type = 1
 determine which act() interface would be called in hPsi()
 
bool in_place = false
 
enum calculation_type cal_type
 
Operatornext_sub_op = nullptr
 
bool is_first_node = true
 
psi::Psi< T, Device > * hpsi = nullptr
 
Device * ctx = {}
 

Constructor & Destructor Documentation

◆ ~OperatorMock()

template<typename T >
OperatorMock< T >::~OperatorMock ( )
inlineprivate

Member Function Documentation

◆ act() [1/4]

void OperatorMock< double >::act ( const int  nbands,
const int  nbasis,
const int  npol,
const double *  tmpsi_in,
double *  tmhpsi,
const int  ngk_ik,
const bool  is_first_node 
) const
private
Here is the call graph for this function:

◆ act() [2/4]

void OperatorMock< std::complex< double > >::act ( const int  nbands,
const int  nbasis,
const int  npol,
const std::complex< double > *  tmpsi_in,
std::complex< double > *  tmhpsi,
const int  ngk_ik,
const bool  is_first_node 
) const
private
Here is the call graph for this function:

◆ act() [3/4]

void OperatorMock< std::complex< float > >::act ( const int  nbands,
const int  nbasis,
const int  npol,
const std::complex< float > *  tmpsi_in,
std::complex< float > *  tmhpsi,
const int  ngk_ik,
const bool  is_first_node 
) const
private
Here is the call graph for this function:

◆ act() [4/4]

template<typename T >
virtual void OperatorMock< T >::act ( const int  nbands,
const int  nbasis,
const int  npol,
const T tmpsi_in,
T tmhpsi,
const int  ngk_ik = 0,
const bool  is_first_node = false 
) const
privatevirtual

do operation : |hpsi_choosed> = V|psi_choosed> V is the target operator act on choosed psi, the consequence should be added to choosed hpsi interface type 1: pointer-only (default)

Note
PW: nbasis = max_npw * npol, nbands = nband * npol, npol = npol. Strange but PAY ATTENTION!!!

Reimplemented from hamilt::Operator< T, Device >.


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