Description Usage Arguments Details Value Note Author(s)
The functions can be used
to check if the current system supports the openMP standard;
to control the number of used cores;
to set the seeds of the random number generators.
1 2 3 4 5 | hasOMP()
setOMPThreads(nthreads)
setSITMOSeeds(seed)
|
nthreads |
number of OpenMP threads to be used. |
seed |
number between 0 and 1 used to set the seeds of the random number generators in each threads. |
Each openMP thread (or the single thread used on systems where openMP is not
supported) uses a separate sitmo
random number generator.
See sitmo-package
.
Function hasOMP
returns TRUE/FALSE if the system
supports/does not support openMP.
Functions setOMPThreads
and setSITMOSeeds
do not return any value.
When the package is loaded, the following code is automatically executed
if (hasOMP()) setOMPThreads(parallel::detectCores())
setSITMOSeeds(runif(1))
Giovanna Capizzi and Guido Masarotto
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.