MADNESS 0.10.1
madness::MacroTaskComputeCorrelationEnergy Class Reference

#include <CCStructures.h>

Inheritance diagram for madness::MacroTaskComputeCorrelationEnergy:
Collaboration diagram for madness::MacroTaskComputeCorrelationEnergy:

Public Types

typedef std::tuple< const std::vector< CCPair > &, const CC_vecfunction &, const Info & > argtupleT
typedef std::vector< ScalarResult< double > > resultT
 first vector is the potential, second is an intermediate (if applicable, e.g. for s2b and s2c potentials)

Public Member Functions

 MacroTaskComputeCorrelationEnergy ()
resultT allocator (World &world, const argtupleT &argtuple) const
 allocate the result and set the name of this task
resultT operator() (const std::vector< CCPair > &pairs, const CC_vecfunction &singles_gs, const Info &info) const
Public Member Functions inherited from madness::MacroTaskOperationBase
 MacroTaskOperationBase ()
 MacroTaskOperationBase (const std::string name)
virtual ~MacroTaskOperationBase ()
virtual bool accumulates_own_output () const
virtual void cleanup ()
 release whatever the task kept across its batches, called once the queue has run
virtual bool handles_own_data_movement () const
 true if the task moves its operand coefficients into the subworld itself
virtual long owner_hint (const Batch &, const long) const
 which subworld should run this batch; -1 leaves the choice to the queue

Public Attributes

std::string basename ="CorrelationEnergy"
Public Attributes inherited from madness::MacroTaskOperationBase
Batch batch
Cloud * cloud_ptr =0
std::string name ="unknown_task"
std::shared_ptr< MacroTaskPartitioner > partitioner =0
World * subworld_ptr =0

Member Typedef Documentation

◆ argtupleT

typedef std::tuple< const std::vector<CCPair>&, const CC_vecfunction&, const Info& > madness::MacroTaskComputeCorrelationEnergy::argtupleT

◆ resultT

first vector is the potential, second is an intermediate (if applicable, e.g. for s2b and s2c potentials)

Constructor & Destructor Documentation

◆ MacroTaskComputeCorrelationEnergy()

madness::MacroTaskComputeCorrelationEnergy::MacroTaskComputeCorrelationEnergy ( )
inline

Member Function Documentation

◆ allocator()

resultT madness::MacroTaskComputeCorrelationEnergy::allocator ( World & world,
const argtupleT & argtuple ) const
inline

allocate the result and set the name of this task

References madness::scalar_result_vector().

◆ operator()()

std::vector< ScalarResult< double > > madness::MacroTaskComputeCorrelationEnergy::operator() ( const std::vector< CCPair > & pairs,
const CC_vecfunction & singles_gs,
const Info & info ) const

Member Data Documentation

◆ basename

std::string madness::MacroTaskComputeCorrelationEnergy::basename ="CorrelationEnergy"

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