Function gen_random_uniform¶
function gen_random_uniform(const random_state &) base¶
template <typename T, index_t Dims = 1>
KFR_FUNCTION expression_random_uniform<T, Dims> gen_random_uniform(const random_state& state) Creates an expression that produces uniform pseudorandom values in [0, 1) using a copied state.
| T | Value type of the generated samples. |
| Dims | Number of dimensions of the expression. |
| state | Random generator state to copy into the expression. |
| Expression generating uniform random values. |
Fully qualified name: kfr::gen_random_uniform(const random_state &)
Declared at base/random.hpp:276
Function gen_random_uniform¶
function gen_random_uniform(std::reference_wrapper<random_state>) base¶
template <typename T, index_t Dims = 1>
KFR_FUNCTION expression_random_uniform<T, Dims, true> gen_random_uniform(
std::reference_wrapper<random_state> state) Creates an expression that produces uniform pseudorandom values in [0, 1) using a referenced state.
Use std::ref(state) to select this overload.
| T | Value type of the generated samples. |
| Dims | Number of dimensions of the expression. |
| state | Reference wrapper to the random generator state. |
| Expression generating uniform random values. |
Fully qualified name: kfr::gen_random_uniform(std::reference_wrapper<random_state>)
Declared at base/random.hpp:292
Function gen_random_uniform¶
function gen_random_uniform() base¶
template <typename T, index_t Dims = 1>
KFR_FUNCTION expression_random_uniform<T, Dims> gen_random_uniform() Creates an expression that produces uniform pseudorandom values in [0, 1) seeded from the cycle counter.
| T | Value type of the generated samples. |
| Dims | Number of dimensions of the expression. |
| Expression generating uniform random values. |
Fully qualified name: kfr::gen_random_uniform()
Declared at base/random.hpp:308
This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.