ALPSCore reference
Public Member Functions | List of all members
alps::alea::bundle< T > Class Template Reference

#include <bundle.hpp>

Inheritance diagram for alps::alea::bundle< T >:
Inheritance graph
Collaboration diagram for alps::alea::bundle< T >:
Collaboration graph

Public Member Functions

 bundle (size_t size, size_t target)
 
void reset ()
 
bool is_full ()
 
size_t size () const
 
size_t & target ()
 
const size_t & target () const
 
size_t & count ()
 
size_t count () const
 
column< T > & sum ()
 
const column< T > & sum () const
 

Detailed Description

template<typename T>
class alps::alea::bundle< T >

Bundle of measurements.

Some accumulator, particularly the variance, are more efficient working in "bundled" mode, where n measurement are bundled or batched together.

Definition at line 20 of file bundle.hpp.

Constructor & Destructor Documentation

template<typename T>
alps::alea::bundle< T >::bundle ( size_t  size,
size_t  target 
)
inline

Definition at line 23 of file bundle.hpp.

Member Function Documentation

template<typename T>
size_t& alps::alea::bundle< T >::count ( )
inline

Definition at line 37 of file bundle.hpp.

template<typename T>
size_t alps::alea::bundle< T >::count ( ) const
inline

Definition at line 39 of file bundle.hpp.

template<typename T>
bool alps::alea::bundle< T >::is_full ( )
inline

Definition at line 28 of file bundle.hpp.

template<typename T>
void alps::alea::bundle< T >::reset ( )
inline

Re-allocate and thus clear all accumulated data

Definition at line 26 of file bundle.hpp.

template<typename T>
size_t alps::alea::bundle< T >::size ( ) const
inline

Number of components of the random vector (e.g., size of mean)

Definition at line 31 of file bundle.hpp.

template<typename T>
column<T>& alps::alea::bundle< T >::sum ( )
inline

Definition at line 41 of file bundle.hpp.

template<typename T>
const column<T>& alps::alea::bundle< T >::sum ( ) const
inline

Definition at line 43 of file bundle.hpp.

template<typename T>
size_t& alps::alea::bundle< T >::target ( )
inline

Definition at line 33 of file bundle.hpp.

template<typename T>
const size_t& alps::alea::bundle< T >::target ( ) const
inline

Definition at line 35 of file bundle.hpp.


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