ALPSCore reference
|
#include <error.hpp>
Public Types | |
typedef alps::accumulators::error_type< B >::type | error_type |
typedef alps::numeric::scalar< error_type >::type | error_scalar_type |
typedef Result< T, error_tag, typename B::result_type > | result_type |
Public Member Functions | |
Accumulator () | |
Accumulator (Accumulator const &arg) | |
template<typename ArgumentPack > | |
Accumulator (ArgumentPack const &args, typename std::enable_if<!is_accumulator< ArgumentPack >::value, int >::type=0) | |
error_type const | error () const |
void | operator() (T const &val) |
template<typename S > | |
void | print (S &os, bool terse=false) const |
void | save (hdf5::archive &ar) const |
void | load (hdf5::archive &ar) |
void | reset () |
template<typename A > | |
void | merge (const A &rhs) |
Merge the mean & error of given accumulator of type A into this accumulator. More... | |
Static Public Member Functions | |
static std::size_t | rank () |
static bool | can_load (hdf5::archive &ar) |
typedef alps::numeric::scalar<error_type>::type alps::accumulators::impl::Accumulator< T, error_tag, B >::error_scalar_type |
typedef alps::accumulators::error_type<B>::type alps::accumulators::impl::Accumulator< T, error_tag, B >::error_type |
typedef Result<T, error_tag, typename B::result_type> alps::accumulators::impl::Accumulator< T, error_tag, B >::result_type |
|
inline |
|
inline |
|
inline |
|
static |
auto alps::accumulators::impl::Accumulator< T, error_tag, B >::error | ( | ) | const |
void alps::accumulators::impl::Accumulator< T, error_tag, B >::load | ( | hdf5::archive & | ar | ) |
|
inline |
Merge the mean & error of given accumulator of type A into this accumulator.
rhs | Accumulator to merge |
void alps::accumulators::impl::Accumulator< T, error_tag, B >::operator() | ( | T const & | val | ) |
|
inline |
|
inlinestatic |
|
inline |
void alps::accumulators::impl::Accumulator< T, error_tag, B >::save | ( | hdf5::archive & | ar | ) | const |