Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dSFMT: use fill_array_* API instead of genrand_* API #8832

Merged
merged 2 commits into from
Oct 30, 2014

Commits on Oct 29, 2014

  1. dSFMT: use fill_array_* API instead of genrand_* API

    Both APIs are not very compatible, so let's use fill_array_* functions, which
    are faster but require MersenneTwister to have an additional array field.
    rfourquet committed Oct 29, 2014
    Configuration menu
    Copy the full SHA
    0f2d3ea View commit details
    Browse the repository at this point in the history
  2. make Julia global RNG be an instance of MersenneTwister

    The state of the global RNG was previously handled by libdSFMT.
    This commit allows the global RNG to benefit speed improvements resulting
    from the use of fill_array_* functions (cf. previous commit).
    
    However, scalar calls to rand() (i.e. producing one value instead of
    filling an array) using the global RNG are now slower, as well as those
    filling non-Float64 arrays (less than twice as slow though).
    rfourquet committed Oct 29, 2014
    Configuration menu
    Copy the full SHA
    3f6bd03 View commit details
    Browse the repository at this point in the history