QMCPACK
accumulators.h File Reference

Define and declare accumulator_set. More...

+ Include dependency graph for accumulators.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  accumulator_set< T, typename >
 generic accumulator of a scalar type More...
 

Functions

template<typename ACC >
ACC::value_type mean (const ACC &ac)
 
template<typename T >
std::ostream & operator<< (std::ostream &os, accumulator_set< T > &rhs)
 

Detailed Description

Define and declare accumulator_set.

A temporary implementation to handle scalar samples and will be replaced by boost.Accumulator

Definition in file accumulators.h.

Function Documentation

◆ mean()

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
accumulator_set< T > &  rhs 
)

Definition at line 153 of file accumulators.h.

154 {
155  os << "accumulator_set: "
156  << " value = " << rhs.properties[0] << " value_sq = " << rhs.properties[1] << " weight = " << rhs.properties[2];
157  return os;
158 }
T properties[CAPACITY]
Definition: accumulators.h:44