Description Usage Arguments Details Value Examples
The function provides an implementation of creating realizations from the default engine.
1 | sitmo_parallel(n, seeds)
|
n |
An |
seeds |
A |
The following function's true power is only accessible on platforms that support OpenMP (e.g. Windows and Linux). However, it does provide a very good example as to how to make ones code applicable across multiple platforms.
With this being said, how we determine how many cores to split the generation to is governed by the number of seeds supplied. In the event that one is using OS X, only the first seed supplied is used.
A vec
containing the realizations.
1 2 3 4 5 6 7 8 9 10 | a = sitmo_parallel(10, c(1))
b = sitmo_parallel(10, c(1,2))
c = sitmo_parallel(10, c(1,2))
# True on only OS X or systems without openmp
isTRUE(all.equal(a,b))
isTRUE(all.equal(b,c))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.