Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Math::RanluxppCompatEngineLuescherImpl< w, p > Class Template Reference

template<int w, int p>
class ROOT::Math::RanluxppCompatEngineLuescherImpl< w, p >

Definition at line 575 of file RanluxppEngineImpl.cxx.

Public Member Functions

uint64_t NextRandomBits ()
 Return the next random bits, generate a new block if necessary.
 
double NextRandomFloat ()
 Return a floating point number, converted from the next random bits.
 
void SetSeed (uint32_t s, bool ranlxd)
 Initialize and seed the state of the generator as in Lüscher's ranlxs.
 
void Skip (uint64_t n)
 Skip n random numbers without generating them.
 

Private Attributes

int fNextState = 0
 The index of the next state.
 
RanluxppEngineImpl< w, pfStates [4]
 The states of this generator.
 

Member Function Documentation

◆ NextRandomBits()

template<int w, int p>
uint64_t ROOT::Math::RanluxppCompatEngineLuescherImpl< w, p >::NextRandomBits ( )
inline

Return the next random bits, generate a new block if necessary.

Definition at line 583 of file RanluxppEngineImpl.cxx.

◆ NextRandomFloat()

template<int w, int p>
double ROOT::Math::RanluxppCompatEngineLuescherImpl< w, p >::NextRandomFloat ( )
inline

Return a floating point number, converted from the next random bits.

Definition at line 591 of file RanluxppEngineImpl.cxx.

◆ SetSeed()

template<int w, int p>
void ROOT::Math::RanluxppCompatEngineLuescherImpl< w, p >::SetSeed ( uint32_t  s,
bool  ranlxd 
)
inline

Initialize and seed the state of the generator as in Lüscher's ranlxs.

Definition at line 599 of file RanluxppEngineImpl.cxx.

◆ Skip()

template<int w, int p>
void ROOT::Math::RanluxppCompatEngineLuescherImpl< w, p >::Skip ( uint64_t  n)
inline

Skip n random numbers without generating them.

Definition at line 645 of file RanluxppEngineImpl.cxx.

Member Data Documentation

◆ fNextState

template<int w, int p>
int ROOT::Math::RanluxppCompatEngineLuescherImpl< w, p >::fNextState = 0
private

The index of the next state.

Definition at line 579 of file RanluxppEngineImpl.cxx.

◆ fStates

template<int w, int p>
RanluxppEngineImpl<w, p> ROOT::Math::RanluxppCompatEngineLuescherImpl< w, p >::fStates[4]
private

The states of this generator.

Definition at line 578 of file RanluxppEngineImpl.cxx.

  • math/mathcore/inc/Math/RanluxppEngine.h
  • math/mathcore/src/RanluxppEngineImpl.cxx