Bridge++  Ver. 1.1.x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
randomNumbers.h
Go to the documentation of this file.
1 
15 #ifndef RANDOMNUMBERS_INCLUDED
16 #define RANDOMNUMBERS_INCLUDED
17 
18 #include <cmath>
19 #include <string>
20 
21 #include "defs.h"
22 #include "commonParameters.h"
23 #include "bridgeIO.h"
24 #include "field.h"
25 
27 
41 {
42  protected:
44 
45  public:
46 
48  : m_vl(CommonParameters::Vlevel()) {}
49 
50  virtual ~RandomNumbers() {}
51 
53 
54  virtual double get() = 0;
55 
56  void gauss(double& rn1, double& rn2);
57 
58  void uniform(Field&);
59  void gauss(Field&);
60 
62  void gauss_lex_global(Field&);
63 
65  void gauss_eo_global(Field&);
66 
69 };
70 #endif