ALPSCore reference
Classes | Namespaces | Macros | Functions
mean.hpp File Reference
#include <alps/config.hpp>
#include <alps/accumulators/feature.hpp>
#include <alps/accumulators/parameter.hpp>
#include <alps/accumulators/feature/count.hpp>
#include <alps/accumulators/archive_traits.hpp>
#include <alps/hdf5/archive.hpp>
#include <alps/numeric/inf.hpp>
#include <alps/numeric/boost_array_functions.hpp>
#include <alps/numeric/check_size.hpp>
#include <alps/numeric/vector_functions.hpp>
#include <alps/utilities/stacktrace.hpp>
#include <alps/utilities/short_print.hpp>
#include <boost/utility.hpp>
#include <stdexcept>
#include <type_traits>
Include dependency graph for mean.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  alps::accumulators::mean_type< T >
 
struct  alps::accumulators::has_feature< T, mean_tag >
 
struct  alps::accumulators::impl::Accumulator< T, mean_tag, B >
 
class  alps::accumulators::impl::Result< T, mean_tag, B >
 
class  alps::accumulators::impl::BaseWrapper< T, mean_tag, B >
 
class  alps::accumulators::impl::DerivedWrapper< T, mean_tag, B >
 

Namespaces

 alps
 
 alps::accumulators
 
 alps::accumulators::impl
 

Macros

#define NUMERIC_FUNCTION_DECLARATION(FUNCTION_NAME)   void FUNCTION_NAME ();
 
#define NUMERIC_FUNCTION_OPERATOR(OP_NAME, OPEQ_NAME, OP, OP_TOKEN)
 

Functions

template<typename T >
mean_type< T >::type alps::accumulators::mean (T const &arg)
 

Macro Definition Documentation

#define NUMERIC_FUNCTION_DECLARATION (   FUNCTION_NAME)    void FUNCTION_NAME ();

Definition at line 172 of file mean.hpp.

#define NUMERIC_FUNCTION_OPERATOR (   OP_NAME,
  OPEQ_NAME,
  OP,
  OP_TOKEN 
)
Value:
template<typename U> void aug ## OP_TOKEN (U const & arg, typename std::enable_if<!std::is_scalar<U>::value, int>::type = 0) { \
using alps::numeric:: OP_NAME ; \
m_mean = m_mean OP arg.mean(); \
B:: OPEQ_NAME (arg); \
} \
template<typename U> void aug ## OP_TOKEN (U const & arg, \
typename std::enable_if<std::is_scalar<U>::value, int>::type = 0) { \
using alps::numeric:: OP_NAME ; \
m_mean = m_mean OP static_cast<typename alps::numeric::scalar<mean_type>::type>(arg); \
B:: OPEQ_NAME (arg); \
}
Metafunction returning "mathematical scalar" type for type T.
Definition: scalar.hpp:28

Definition at line 197 of file mean.hpp.