#include <RandomGenerators.hpp>
Public Member Functions | |
void | jump () |
uint64_t | operator() () |
void | seed (uint64_t seed) |
XorShift1024Star (const XorShift1024Star &gen) | |
XorShift1024Star (XorShift1024Star &&gen) | |
XorShift1024Star (uint64_t seed) | |
XorShift1024Star () | |
Static Public Member Functions | |
static constexpr result_type | max () |
static constexpr result_type | min () |
Private Attributes | |
int | p = 0 |
uint64_t | s [16] |
Definition at line 96 of file RandomGenerators.hpp.
ApproxMVBB::RandomGenerators::XorShift1024Star::XorShift1024Star | ( | uint64_t | seed | ) | [inline] |
Definition at line 250 of file RandomGenerators.hpp.
Take time() to seed this generator
Definition at line 255 of file RandomGenerators.hpp.
void ApproxMVBB::RandomGenerators::XorShift1024Star::jump | ( | ) | [inline] |
This is the jump function for the generator. It is equivalent to 2^512 calls to next(); it can be used to generate 2^512 non-overlapping subsequences for parallel computations.
Definition at line 280 of file RandomGenerators.hpp.
static constexpr result_type ApproxMVBB::RandomGenerators::XorShift1024Star::max | ( | ) | [inline, static] |
Definition at line 123 of file RandomGenerators.hpp.
static constexpr result_type ApproxMVBB::RandomGenerators::XorShift1024Star::min | ( | ) | [inline, static] |
Definition at line 122 of file RandomGenerators.hpp.
uint64_t ApproxMVBB::RandomGenerators::XorShift1024Star::operator() | ( | ) | [inline] |
Generate random number
Definition at line 267 of file RandomGenerators.hpp.
void ApproxMVBB::RandomGenerators::XorShift1024Star::seed | ( | uint64_t | seed | ) | [inline] |
Definition at line 259 of file RandomGenerators.hpp.
int ApproxMVBB::RandomGenerators::XorShift1024Star::p = 0 [private] |
Definition at line 100 of file RandomGenerators.hpp.
uint64_t ApproxMVBB::RandomGenerators::XorShift1024Star::s[16] [private] |
Definition at line 99 of file RandomGenerators.hpp.