ALPSCore reference
|
#include <batch.hpp>
Public Types | |
using | value_type = T |
Public Member Functions | |
batch_acc (size_t size=1, size_t num_batches=256, size_t base_size=1) | |
batch_acc (const batch_acc &other) | |
batch_acc & | operator= (const batch_acc &other) |
void | reset () |
void | set_size (size_t size) |
void | set_num_batches (size_t batch_size) |
void | set_batch_size (size_t batch_size) |
bool | valid () const |
size_t | size () const |
size_t | num_batches () const |
batch_acc & | operator<< (const computed< T > &src) |
batch_acc & | operator<< (const batch_result< T > &result) |
size_t | count () const |
batch_result< T > | result () const |
batch_result< T > | finalize () |
const batch_data< T > & | store () const |
const internal::galois_hopper & | cursor () const |
const eigen< size_t >::row & | offset () const |
size_t | current_batch_size () const |
Protected Member Functions | |
void | add (const computed< T > &source, size_t count) |
void | next_batch () |
void | finalize_to (batch_result< T > &result) |
Accumulator which keeps track of batches of (consecutive) measurements
using alps::alea::batch_acc< T >::value_type = T |
alps::alea::batch_acc< T >::batch_acc | ( | size_t | size = 1 , |
size_t | num_batches = 256 , |
||
size_t | base_size = 1 |
||
) |
alps::alea::batch_acc< T >::batch_acc | ( | const batch_acc< T > & | other | ) |
|
protected |
|
inline |
|
inline |
|
inline |
batch_result< T > alps::alea::batch_acc< T >::finalize | ( | ) |
|
protected |
|
protected |
|
inline |
|
inline |
|
inline |
batch_acc< T > & alps::alea::batch_acc< T >::operator<< | ( | const batch_result< T > & | result | ) |
batch_acc< T > & alps::alea::batch_acc< T >::operator= | ( | const batch_acc< T > & | other | ) |
void alps::alea::batch_acc< T >::reset | ( | ) |
batch_result< T > alps::alea::batch_acc< T >::result | ( | ) | const |
void alps::alea::batch_acc< T >::set_batch_size | ( | size_t | batch_size | ) |
void alps::alea::batch_acc< T >::set_num_batches | ( | size_t | batch_size | ) |
void alps::alea::batch_acc< T >::set_size | ( | size_t | size | ) |
|
inline |
|
inline |
|
inline |
Returns false
if finalize()
has been called, true
otherwise