|
Expression Templates Library (ETL)
|
Generator from an uniform distribution. More...
#include <uniform.hpp>
Public Types | |
| using | value_type = T |
| The value type. | |
Public Member Functions | |
| uniform_generator_op (T start, T end) | |
| Construct a new generator with the given start and end of the range. More... | |
| value_type | operator() () |
| Generate a new value. More... | |
Public Attributes | |
| const T | start |
| The start of the distribution. | |
| const T | end |
| The end of the distribution. | |
| random_engine | rand_engine |
| The random engine. | |
| uniform_distribution< value_type > | distribution |
| The used distribution. | |
Static Public Attributes | |
| static constexpr bool | gpu_computable |
| Indicates if the operator can be computed on GPU. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, [[maybe_unused]] const uniform_generator_op &s) |
| Outputs the given generator to the given stream. More... | |
Generator from an uniform distribution.
|
inline |
Construct a new generator with the given start and end of the range.
| start | The beginning of the range |
| end | The end of the range |
|
inline |
Generate a new value.
|
friend |
Outputs the given generator to the given stream.
| os | The output stream |
| s | The generator |
|
static |
Indicates if the operator can be computed on GPU.
1.8.13