1#ifndef FREE_TENSOR_RANDOM_H
2#define FREE_TENSOR_RANDOM_H
23 typedef std::default_random_engine RNG;
25 std::vector<RNG> rngs_;
28 typedef RNG::result_type
48 static constexpr RNG::result_type
min() {
return RNG::min(); }
49 static constexpr RNG::result_type
max() {
return RNG::max(); }
52static_assert(std::uniform_random_bit_generator<OpenMPRandomEngine>);
static constexpr RNG::result_type max()
Definition: random.h:49
OpenMPRandomEngine & operator=(const OpenMPRandomEngine &)=delete
RNG::result_type result_type
sub-engines for each thread
Definition: random.h:29
OpenMPRandomEngine & operator=(OpenMPRandomEngine &&)=default
static constexpr RNG::result_type min()
Definition: random.h:48
OpenMPRandomEngine(OpenMPRandomEngine &&)=default
OpenMPRandomEngine(const OpenMPRandomEngine &)=delete
RNG::result_type operator()()
Definition: random.cc:22
Definition: allocator.h:9