MADNESS 0.10.1
madness::Batch_1D Class Reference

#include <macrotaskpartitioner.h>

Public Member Functions

 Batch_1D ()
 Batch_1D (const long &begin, const long &end)
 Batch_1D (const Slice &s)
template<typename tupleT, std::size_t appearance>
tupleT copy_batch (const tupleT &arg) const
 select the relevant vector elements from the argument tuple
template<typename vecT>
vecT copy_batch (const vecT v) const
 given vector v, return those vector elements inside this batch
template<typename vecT>
vecT insert_batch (vecT v, const vecT &v_batch) const
 given vector v, copy vector elements of v_batch into vector
bool is_full_size () const
bool operator== (const Batch_1D &other) const
long size () const

Public Attributes

long begin =0
long end =-1
 first and first past last index [begin,end)

Friends

class MacroTaskPartitioner
std::ostream & operator<< (std::ostream &os, const Batch_1D &batch)

Constructor & Destructor Documentation

◆ Batch_1D() [1/3]

madness::Batch_1D::Batch_1D ( )
inline

Referenced by operator<<, and operator==().

◆ Batch_1D() [2/3]

madness::Batch_1D::Batch_1D ( const Slice & s)
inline

References begin, end, and MADNESS_CHECK.

◆ Batch_1D() [3/3]

madness::Batch_1D::Batch_1D ( const long & begin,
const long & end )
inline

References begin, and end.

Member Function Documentation

◆ copy_batch() [1/2]

template<typename tupleT, std::size_t appearance>
tupleT madness::Batch_1D::copy_batch ( const tupleT & arg) const
inline

◆ copy_batch() [2/2]

template<typename vecT>
vecT madness::Batch_1D::copy_batch ( const vecT v) const
inline

given vector v, return those vector elements inside this batch

References begin, end, and v.

◆ insert_batch()

template<typename vecT>
vecT madness::Batch_1D::insert_batch ( vecT v,
const vecT & v_batch ) const
inline

given vector v, copy vector elements of v_batch into vector

References begin, and v.

Referenced by test_batch_1D().

◆ is_full_size()

bool madness::Batch_1D::is_full_size ( ) const
inline

References begin, and end.

Referenced by copy_batch(), operator<<, and test_batch_1D().

◆ operator==()

bool madness::Batch_1D::operator== ( const Batch_1D & other) const
inline

References Batch_1D(), begin, and end.

◆ size()

long madness::Batch_1D::size ( ) const
inline

◆ MacroTaskPartitioner

friend class MacroTaskPartitioner
friend

References MacroTaskPartitioner.

Referenced by MacroTaskPartitioner.

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const Batch_1D & batch )
friend

References Batch_1D(), begin, end, and is_full_size().

Member Data Documentation

◆ begin

◆ end


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