#include <arcane/core/random/TMrg32k3a.h>
Public Types | |
| typedef RealType | result_type |
| typedef RealType | state_type |
Public Member Functions | |
| TMrg32k3a (Int32 x0=1) | |
Constructor initializing the seed array from the value x0. The seed(x0) method is called. | |
| TMrg32k3a (state_type *state) | |
Constructor initializing the seed array from the state array. state must be an array of six elements. | |
| void | seed (Int32 x0) |
Initialization of the seed array from the value x0. The seed array of this generator consists of six elements. | |
| RealType | getState (Integer i) const |
Method that returns the generator state for index i. The complete state of the generator is given by the index values i ranging between 0 and 5 ( 0 < i <=5 ). | |
| RealType | operator() () |
Overloading of the () operator which returns the pseudo random value of the generator. The generator state is modified. | |
| result_type | min () const |
| Returns the minimum possible value of a sequence. | |
| result_type | max () const |
| Returns the maximum possible value of a sequence. | |
| bool | validation (RealType x) const |
| Validation function (I'm not sure what it's for!). | |
| bool | operator== (const TMrg32k3a &rhs) const |
| Overloading of the == operator. | |
Static Public Member Functions | |
| static RealType | apply (state_type *state) |
Returns the pseudo-random value from the state. The generator state state must consist of six elements. | |
Static Public Attributes | |
| static const bool | has_fixed_range = true |
| static const Int32 | min_value = 0 |
| static const Int32 | max_value = 1 |
Private Attributes | |
| state_type | _state [6] |
Class template TMrg32k3a. It allows defining classes of Mrg32k3a type generators. The pseudo-random numbers generated are of type RealType. The generator state is characterized by six values of type RealType and can be managed internally by the private member _state[i] where 0<i<=5.
The generation of a sequence of pseudo-random numbers is performed:
apply(value) method. The generator state is managed outside the class. The seed and getState methods are meaningless in this usage. Definition at line 49 of file TMrg32k3a.h.
| typedef RealType Arcane::random::TMrg32k3a< RealType, val >::result_type |
Definition at line 53 of file TMrg32k3a.h.
| typedef RealType Arcane::random::TMrg32k3a< RealType, val >::state_type |
Definition at line 54 of file TMrg32k3a.h.
|
inlineexplicit |
Constructor initializing the seed array from the value x0. The seed(x0) method is called.
Definition at line 68 of file TMrg32k3a.h.
|
inlineexplicit |
Constructor initializing the seed array from the state array. state must be an array of six elements.
Definition at line 82 of file TMrg32k3a.h.
|
inlinestatic |
Returns the pseudo-random value from the state. The generator state state must consist of six elements.
Definition at line 145 of file TMrg32k3a.h.
Referenced by Arcane::random::TMrg32k3a< Real, 0 >::operator()().
|
inline |
Method that returns the generator state for index i. The complete state of the generator is given by the index values i ranging between 0 and 5 ( 0 < i <=5 ).
Definition at line 118 of file TMrg32k3a.h.
|
inline |
Returns the maximum possible value of a sequence.
Definition at line 191 of file TMrg32k3a.h.
|
inline |
Returns the minimum possible value of a sequence.
Definition at line 181 of file TMrg32k3a.h.
|
inline |
Overloading of the () operator which returns the pseudo random value of the generator. The generator state is modified.
Definition at line 129 of file TMrg32k3a.h.
|
inline |
|
inline |
Initialization of the seed array from the value x0. The seed array of this generator consists of six elements.
Definition at line 97 of file TMrg32k3a.h.
Referenced by Arcane::random::TMrg32k3a< Real, 0 >::TMrg32k3a().
|
inline |
Validation function (I'm not sure what it's for!).
Definition at line 201 of file TMrg32k3a.h.
|
private |
Definition at line 218 of file TMrg32k3a.h.
|
static |
Definition at line 55 of file TMrg32k3a.h.
|
static |
Definition at line 57 of file TMrg32k3a.h.
|
static |
Definition at line 56 of file TMrg32k3a.h.