|
Expression Templates Library (ETL)
|
Generator from a normal distribution using a custom random engine. More...
#include <normal.hpp>
Public Types | |
| using | value_type = T |
| The value type. | |
Public Member Functions | |
| normal_generator_g_op (G &g, T mean, T stddev) | |
| Construct a new generator with the given mean and standard deviation. More... | |
| value_type | operator() () |
| Generate a new value. More... | |
Public Attributes | |
| const T | mean |
| The mean. | |
| const T | stddev |
| The standard deviation. | |
| G & | rand_engine |
| The random engine. | |
| std::normal_distribution< value_type > | distribution |
| The used distribution. | |
Static Public Attributes | |
| static constexpr bool | gpu_computable = (is_single_precision_t<T> && curand_enabled) || (is_double_precision_t<T> && curand_enabled) |
| Indicates if the operator can be computed on GPU. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, [[maybe_unused]] const normal_generator_g_op &s) |
| Outputs the given generator to the given stream. More... | |
Generator from a normal distribution using a custom random engine.
|
inline |
Construct a new generator with the given mean and standard deviation.
| mean | The mean |
| stddev | The standard deviation |
|
inline |
Generate a new value.
|
friend |
Outputs the given generator to the given stream.
| os | The output stream |
| s | The generator |
1.8.13