ALPSCore reference
Classes | Functions
alps::alea::internal Namespace Reference

Classes

struct  deserializer_sentry
 
class  format_registry
 
class  format_registry< bool >
 
class  format_registry< char >
 
class  format_registry< double >
 
class  format_registry< float >
 
class  format_registry< int >
 
class  format_registry< long >
 
class  format_registry< short >
 
class  format_registry< unsigned int >
 
class  format_registry< unsigned long >
 
class  format_registry< unsigned short >
 
class  format_sentry
 
class  galois_hopper
 
struct  joined
 
class  outer_expr
 
struct  serializer_sentry
 

Functions

template<typename T >
T & get_format (std::ios_base &stream, T initial_value=T())
 
template<typename T1 , typename T2 >
constexpr bool joins_batch ()
 
template<typename T1 , typename T2 >
constexpr bool joins_autocorr ()
 
template<typename T1 , typename T2 >
constexpr bool joins_cov ()
 
template<typename T1 , typename T2 >
constexpr bool joins_var ()
 
template<typename T1 , typename T2 >
constexpr bool joins_mean ()
 
template<class Str , typename Arg1 , typename Arg2 >
outer_expr< Str, Arg1, Arg2 > outer (const Eigen::MatrixBase< Arg1 > &arg1, const Eigen::MatrixBase< Arg2 > &arg2)
 
template<typename Acc >
void check_valid (const Acc &acc)
 
template<typename T , typename... Args>
call_vargs (std::function< T(Args...)> func, const T *args)
 
template<typename T , typename... Args>
call_vargs (std::function< T(T, Args...)> func, const T *args)
 
template<typename T >
call_vargs (std::function< T()> func, const T *)
 
template<typename Acc >
traits< Acc >::result_type finalize (Acc &acc)
 
template<typename Acc >
traits< Acc >::result_type result (const Acc &acc)
 
template<typename T >
void scalar_serialize (serializer &ser, const std::string &key, T value)
 
template<typename T >
scalar_deserialize (deserializer &ser, const std::string &key)
 
template<typename T >
void scalar_deserialize (deserializer &ser, const std::string &key, T &value)
 

Function Documentation

template<typename T , typename... Args>
T alps::alea::internal::call_vargs ( std::function< T(Args...)>  func,
const T *  args 
)
template<typename T , typename... Args>
T alps::alea::internal::call_vargs ( std::function< T(T, Args...)>  func,
const T *  args 
)

Definition at line 28 of file util.hpp.

template<typename T >
T alps::alea::internal::call_vargs ( std::function< T()>  func,
const T *   
)

Definition at line 38 of file util.hpp.

template<typename Acc >
void alps::alea::internal::check_valid ( const Acc &  acc)
inline

Definition at line 17 of file util.hpp.

template<typename Acc >
traits<Acc>::result_type alps::alea::internal::finalize ( Acc &  acc)

Definition at line 45 of file util.hpp.

template<typename T >
T& alps::alea::internal::get_format ( std::ios_base &  stream,
initial_value = T() 
)

Allows the use of custom formatting state to I/O stream objects.

Retrieves a reference of the object of copy-constructable type T associated with stream. If no such object exists, it will first associate initial_value with the stream.

Example use:

#include <iostream>
enum verbosity { TERSE, VERBOSE, DEBUG };
class my_type;
// ...
std::ostream &operator<<(std::ostream &str, verbosity verb) {
    get_format(std::cerr, TERSE) = verb;
}
// ...
std::ostream &operator<<(std::ostream &str, const my_type &obj) {
    if (get_format(std::cerr, TERSE) == VERBOSE) {
        // ...
    }
}
See also
format_registry

Definition at line 90 of file format.hpp.

template<typename T1 , typename T2 >
constexpr bool alps::alea::internal::joins_autocorr ( )

Definition at line 37 of file joined.hpp.

template<typename T1 , typename T2 >
constexpr bool alps::alea::internal::joins_batch ( )

Definition at line 30 of file joined.hpp.

template<typename T1 , typename T2 >
constexpr bool alps::alea::internal::joins_cov ( )

Definition at line 44 of file joined.hpp.

template<typename T1 , typename T2 >
constexpr bool alps::alea::internal::joins_mean ( )

Definition at line 62 of file joined.hpp.

template<typename T1 , typename T2 >
constexpr bool alps::alea::internal::joins_var ( )

Definition at line 52 of file joined.hpp.

template<class Str , typename Arg1 , typename Arg2 >
outer_expr<Str, Arg1, Arg2> alps::alea::internal::outer ( const Eigen::MatrixBase< Arg1 > &  arg1,
const Eigen::MatrixBase< Arg2 > &  arg2 
)

Perform outer product in the sense of a variance for eigen vectors.

Given two Eigen vectors x,y of type Str::value_type, construct a Matrix-valued eigen expression of type Str::cov_type, where the (i,j)-th element is given by Str::outer(x,y).

Definition at line 31 of file outer.hpp.

template<typename Acc >
traits<Acc>::result_type alps::alea::internal::result ( const Acc &  acc)

Definition at line 53 of file util.hpp.

template<typename T >
T alps::alea::internal::scalar_deserialize ( deserializer ser,
const std::string &  key 
)

Helper function for deserialization of scalars

Definition at line 71 of file serialize.hpp.

template<typename T >
void alps::alea::internal::scalar_deserialize ( deserializer ser,
const std::string &  key,
T &  value 
)

Helper function for deserialization of scalars

Definition at line 80 of file serialize.hpp.

template<typename T >
void alps::alea::internal::scalar_serialize ( serializer ser,
const std::string &  key,
value 
)

Helper function for serialization of scalars

Definition at line 64 of file serialize.hpp.