NEST
2.6.0,not_revisioned_source_dir@0
|
Provides random numbers and deviates to SLI. More...
#include <random_numbers.h>
Classes | |
class | CreateRDVFunction |
class | CreateRNGFunction |
class | DrandFunction |
class | GetStatus_vFunction |
class | IrandFunction |
class | RandomArrayFunction |
class | RandomFunction |
class | SeedFunction |
class | SetStatus_vdFunction |
Public Member Functions | |
RandomNumbers () | |
~RandomNumbers () | |
const std::string | name (void) const |
Return name of the module. More... | |
const std::string | commandstring (void) const |
Return sli command sequence to be executed for initialisation. More... | |
void | init (SLIInterpreter *) |
Initializes the random number module. More... | |
Public Member Functions inherited from SLIModule | |
virtual | ~SLIModule () |
void | install (std::ostream &, SLIInterpreter *) |
Print installation message via interpreter message command. More... | |
Static Public Member Functions | |
static const Dictionary & | get_rngdict () |
Returns global random number generator dictionary. More... | |
static const Dictionary & | get_rdvdict () |
Returns global random deviate generator dictionary. More... | |
Static Public Attributes | |
static SLIType | RngType |
static SLIType | RngFactoryType |
static SLIType | RdvType |
static SLIType | RdvFactoryType |
Private Member Functions | |
template<typename NumberGenerator > | |
void | register_rng_ (const std::string &name, Dictionary &dict) |
Utility function for registering number generators. More... | |
template<typename DeviateGenerator > | |
void | register_rdv_ (const std::string &name, Dictionary &dict) |
Utility function for registering deviate generators. More... | |
Static Private Attributes | |
static Dictionary * | rngdict_ = 0 |
manages random number generators More... | |
static Dictionary * | rdvdict_ = 0 |
manages random deviate generators More... | |
Provides random numbers and deviates to SLI.
|
inline |
RandomNumbers::~RandomNumbers | ( | ) |
References SLIType::deletetypename(), RdvFactoryType, RdvType, RngFactoryType, and RngType.
|
inlinevirtual |
Return sli command sequence to be executed for initialisation.
Reimplemented from SLIModule.
|
inlinestatic |
Returns global random deviate generator dictionary.
References assert(), and rdvdict_.
Referenced by nest::RandomParameter::RandomParameter().
|
inlinestatic |
|
virtual |
Initializes the random number module.
The random number generator and the random deviate generator dictionaries are set up.
Implements SLIModule.
References librandom::GslRandomGen::add_gsl_rngs(), assert(), SLIInterpreter::createcommand(), createrdvfunction, createrngfunction, SLIInterpreter::datatypefunction, SLIInterpreter::def(), drandfunction, getstatus_vfunction, irandfunction, randomarrayfunction, randomfunction, rdvdict_, RdvFactoryType, RdvType, rngdict_, RngFactoryType, RngType, seedfunction, SLIType::setdefaultaction(), setstatus_vdfunction, and SLIType::settypename().
|
inlinevirtual |
Return name of the module.
Implements SLIModule.
|
private |
Utility function for registering deviate generators.
References Dictionary::insert_move().
|
private |
Utility function for registering number generators.
CreateRDVFunction RandomNumbers::createrdvfunction |
Referenced by init().
CreateRNGFunction RandomNumbers::createrngfunction |
Referenced by init().
DrandFunction RandomNumbers::drandfunction |
Referenced by init().
GetStatus_vFunction RandomNumbers::getstatus_vfunction |
Referenced by init().
IrandFunction RandomNumbers::irandfunction |
Referenced by init().
RandomArrayFunction RandomNumbers::randomarrayfunction |
Referenced by init().
RandomFunction RandomNumbers::randomfunction |
Referenced by init().
|
staticprivate |
manages random deviate generators
Referenced by get_rdvdict(), and init().
|
static |
Referenced by init(), and ~RandomNumbers().
|
static |
Referenced by init(), and ~RandomNumbers().
|
staticprivate |
manages random number generators
Referenced by get_rngdict(), and init().
|
static |
Referenced by init(), and ~RandomNumbers().
|
static |
Referenced by init(), and ~RandomNumbers().
SeedFunction RandomNumbers::seedfunction |
Referenced by init().
SetStatus_vdFunction RandomNumbers::setstatus_vdfunction |
Referenced by init().