ALPS MPS Codes
Reference documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
dmrg_random Struct Reference

#include <random.hpp>

Public Types

typedef double value_type
 
typedef boost::mt19937 engine_t
 
typedef boost::uniform_real
< value_type
uniform_dist_t
 
typedef
boost::normal_distribution
< value_type
normal_dist_t
 
typedef
boost::poisson_distribution
< value_type
poisson_dist_t
 

Static Public Member Functions

static value_type uniform (value_type min, value_type max)
 
static value_type uniform ()
 
static value_type normal (value_type mean, value_type sigma)
 
static value_type normal ()
 

Static Public Attributes

static engine_t engine = dmrg_random::engine_t(42)
 

Detailed Description

Definition at line 32 of file random.hpp.

Member Typedef Documentation

typedef boost::mt19937 dmrg_random::engine_t

Definition at line 34 of file random.hpp.

typedef boost::normal_distribution<value_type> dmrg_random::normal_dist_t

Definition at line 36 of file random.hpp.

typedef boost::poisson_distribution<value_type> dmrg_random::poisson_dist_t

Definition at line 37 of file random.hpp.

typedef boost::uniform_real<value_type> dmrg_random::uniform_dist_t

Definition at line 35 of file random.hpp.

typedef double dmrg_random::value_type

Definition at line 33 of file random.hpp.

Member Function Documentation

static value_type dmrg_random::normal ( value_type  mean,
value_type  sigma 
)
inlinestatic

Definition at line 53 of file random.hpp.

53  {
54  normal_dist_t dist(mean, sigma);
55  return dist(engine);
56  }
static engine_t engine
Definition: random.hpp:39
boost::normal_distribution< value_type > normal_dist_t
Definition: random.hpp:36
static value_type dmrg_random::normal ( )
inlinestatic

Definition at line 58 of file random.hpp.

58  {
59  return normal(0, 1);
60  }
static value_type normal()
Definition: random.hpp:58
static value_type dmrg_random::uniform ( value_type  min,
value_type  max 
)
inlinestatic

Definition at line 42 of file random.hpp.

42  {
43  uniform_dist_t dist(min, max);
44  return dist(engine);
45  }
static engine_t engine
Definition: random.hpp:39
boost::uniform_real< value_type > uniform_dist_t
Definition: random.hpp:35
static value_type dmrg_random::uniform ( )
inlinestatic

Definition at line 47 of file random.hpp.

47  {
48  return uniform(0, 1);
49  }
static value_type uniform()
Definition: random.hpp:47

Member Data Documentation

dmrg_random::engine_t dmrg_random::engine = dmrg_random::engine_t(42)
static

Definition at line 39 of file random.hpp.


The documentation for this struct was generated from the following files: