Skylark (Sketching Library)
0.1
|
#include <randgen.hpp>
Public Types | |
typedef r123::Threefry4x64 | RNG_t |
typedef RNG_t::ctr_type | ctr_t |
typedef RNG_t::key_type | key_t |
typedef r123::MicroURNG< RNG_t > | URNG_t |
Public Member Functions | |
random_array_t (size_t base, size_t size, int seed) | |
int | operator[] (size_t index) const |
Static Public Member Functions | |
static key_t | _seed_to_key (int seed) |
Random-access array of random numbers.
Definition at line 129 of file randgen.hpp.
typedef RNG_t::ctr_type skylark::utility::random_array_t::ctr_t |
Definition at line 136 of file randgen.hpp.
typedef RNG_t::key_type skylark::utility::random_array_t::key_t |
Definition at line 137 of file randgen.hpp.
typedef r123::Threefry4x64 skylark::utility::random_array_t::RNG_t |
Convenience nicknames for Random123 types
Definition at line 135 of file randgen.hpp.
typedef r123::MicroURNG<RNG_t> skylark::utility::random_array_t::URNG_t |
Definition at line 138 of file randgen.hpp.
skylark::utility::random_array_t::random_array_t | ( | size_t | base, |
size_t | size, | ||
int | seed | ||
) | [inline] |
Random-access array of random numbers.
[in] | base | Start location within a global stream. |
[in] | size | The number of random numbers provided. |
[in] | seed | The seed for the array. |
Definition at line 160 of file randgen.hpp.
References max(), and SKYLARK_THROW_EXCEPTION.
static key_t skylark::utility::random_array_t::_seed_to_key | ( | int | seed | ) | [inline, static] |
Definition at line 143 of file randgen.hpp.
int skylark::utility::random_array_t::operator[] | ( | size_t | index | ) | const [inline] |
Definition at line 173 of file randgen.hpp.
References SKYLARK_THROW_EXCEPTION.