|
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> |
T | call_vargs (std::function< T(Args...)> func, const T *args) |
|
template<typename T , typename... Args> |
T | call_vargs (std::function< T(T, Args...)> func, const T *args) |
|
template<typename T > |
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 > |
T | scalar_deserialize (deserializer &ser, const std::string &key) |
|
template<typename T > |
void | scalar_deserialize (deserializer &ser, const std::string &key, T &value) |
|
template<typename T >
T& alps::alea::internal::get_format |
( |
std::ios_base & |
stream, |
|
|
T |
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<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.