Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
ApproxMVBB::RandomGenerators::XorShift1024Star Class Reference

#include <RandomGenerators.hpp>

Public Types

using result_type = uint64_t
 

Public Member Functions

void jump ()
 
uint64_t operator() ()
 
void seed (uint64_t seed)
 
 XorShift1024Star (const XorShift1024Star &gen)=default
 
 XorShift1024Star (XorShift1024Star &&gen)=default
 
 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]
 

Detailed Description

Definition at line 96 of file RandomGenerators.hpp.

Member Typedef Documentation

Definition at line 121 of file RandomGenerators.hpp.

Constructor & Destructor Documentation

ApproxMVBB::RandomGenerators::XorShift1024Star::XorShift1024Star ( const XorShift1024Star gen)
default
ApproxMVBB::RandomGenerators::XorShift1024Star::XorShift1024Star ( XorShift1024Star &&  gen)
default
ApproxMVBB::RandomGenerators::XorShift1024Star::XorShift1024Star ( uint64_t  seed)
inline

Definition at line 250 of file RandomGenerators.hpp.

ApproxMVBB::RandomGenerators::XorShift1024Star::XorShift1024Star ( )
inline

Take time() to seed this generator

Definition at line 255 of file RandomGenerators.hpp.

Member Function Documentation

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 ( )
inlinestatic

Definition at line 123 of file RandomGenerators.hpp.

static constexpr result_type ApproxMVBB::RandomGenerators::XorShift1024Star::min ( )
inlinestatic

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.

Member Data Documentation

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.


The documentation for this class was generated from the following file:


asr_approx_mvbb
Author(s): Gassner Nikolai
autogenerated on Mon Jun 10 2019 12:38:09