MADNESS 0.10.1
madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeRow Class Reference
Inheritance diagram for madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeRow:
Collaboration diagram for madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeRow:

Classes

class  MacroTaskPartitionerRow
 custom partitioning for the exchange operator in exchangeoperator.h More...

Public Types

typedef std::tuple< const std::vector< Function< T, NDIM > > &, const std::vector< Function< T, NDIM > > &, const std::vector< Function< T, NDIM > > & > argtupleT
using resultT = std::vector<Function<T, NDIM>>

Public Member Functions

 MacroTaskExchangeRow (const long nresult, const double lo, const double mul_tol, const Algorithm algorithm)
resultT allocator (World &world, const argtupleT &argtuple) const
std::vector< Function< T, NDIM > > operator() (const std::vector< Function< T, NDIM > > &vket, const std::vector< Function< T, NDIM > > &mo_bra, const std::vector< Function< T, NDIM > > &mo_ket)
 compute exchange row-wise for a fixed orbital phi_i of vket
std::vector< Function< T, NDIM > > row (const std::vector< Function< T, NDIM > > &vket, const std::vector< Function< T, NDIM > > &mo_bra, const std::vector< Function< T, NDIM > > &mo_ket)
std::vector< Function< T, NDIM > > row_fetch_compute (const std::vector< Function< T, NDIM > > &vket, const std::vector< Function< T, NDIM > > &mo_bra, const std::vector< Function< T, NDIM > > &mo_ket)
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

Private Attributes

Algorithm algorithm_
double lo = 1.e-4
double mul_tol = 1.e-7
long nresult
bool symmetric = false

Additional Inherited Members

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

template<typename T, std::size_t NDIM>
template<typename T, std::size_t NDIM>
typedef std::tuple<const std::vector<Function<T, NDIM> >&, const std::vector<Function<T, NDIM> >&, const std::vector<Function<T, NDIM> >&> madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeRow::argtupleT

◆ resultT

template<typename T, std::size_t NDIM>
template<typename T, std::size_t NDIM>
using madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeRow::resultT = std::vector<Function<T, NDIM>>

Constructor & Destructor Documentation

◆ MacroTaskExchangeRow()

template<typename T, std::size_t NDIM>
template<typename T, std::size_t NDIM>
madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeRow::MacroTaskExchangeRow ( const long nresult,
const double lo,
const double mul_tol,
const Algorithm algorithm )
inline

Member Function Documentation

◆ allocator()

template<typename T, std::size_t NDIM>
template<typename T, std::size_t NDIM>
resultT madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeRow::allocator ( World & world,
const argtupleT & argtuple ) const
inline

◆ operator()()

template<typename T, std::size_t NDIM>
template<typename T, std::size_t NDIM>
std::vector< Function< T, NDIM > > madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeRow::operator() ( const std::vector< Function< T, NDIM > > & vket,
const std::vector< Function< T, NDIM > > & mo_bra,
const std::vector< Function< T, NDIM > > & mo_ket )
inline

compute exchange row-wise for a fixed orbital phi_i of vket

create 2 worlds: one fetches the function coefficients from the universe, the other does the computation, then swap. The result is copied back to the universe

References algorithm_, madness::Exchange< T, NDIM >::fetch_compute, MADNESS_EXCEPTION, madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::mo_bra, madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::mo_ket, madness::Exchange< T, NDIM >::multiworld_efficient_row, row(), and row_fetch_compute().

◆ row()

◆ row_fetch_compute()

Member Data Documentation

◆ algorithm_

template<typename T, std::size_t NDIM>
template<typename T, std::size_t NDIM>
Algorithm madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeRow::algorithm_
private

Referenced by MacroTaskExchangeRow(), and operator()().

◆ lo

template<typename T, std::size_t NDIM>
template<typename T, std::size_t NDIM>
double madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeRow::lo = 1.e-4
private

◆ mul_tol

template<typename T, std::size_t NDIM>
template<typename T, std::size_t NDIM>
double madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeRow::mul_tol = 1.e-7
private

◆ nresult

template<typename T, std::size_t NDIM>
template<typename T, std::size_t NDIM>
long madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeRow::nresult
private

Referenced by MacroTaskExchangeRow().

◆ symmetric

template<typename T, std::size_t NDIM>
template<typename T, std::size_t NDIM>
bool madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeRow::symmetric = false
private

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