The function provides an implementation of creating realizations from the default engine.
Arguments
- n
An
unsigned integer
denoting the number of realizations to generate.- seeds
A
vec
containing a list of seeds. Each seed is run on its own core.
Details
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.