Module sfmt_pure_tests

SIMD-oriented Fast Mersenne Twister (SFMT) EUnit testing functions.

Copyright © 2010-2016 Kenji Rikitake and Kyoto University. Copyright (c) 2006, 2007 Mutsuo Saito, Makoto Matsumoto and Hiroshima University.

Authors: Kenji Rikitake (kenji.rikitake@acm.org), Mutsuo Saito, Makoto Matsumoto, Dan Gudmundsson.

References

Description

SIMD-oriented Fast Mersenne Twister (SFMT) EUnit testing functions. The module provides EUnit testing functions for the sfmt module functions. (for period ((2^19937) - 1))

Function Index

reds/1counting reduction of sfmt_pure:init_gen_rand/1.
test_short_speed/0running speed test for 10 times of 100000 calls for sfmt_pure:gen_rand32/1, sfmt_pure:uniform_s/1, and rand:uniform_s/1 (with exsplus algorithm).
test_speed/0running speed test for 100 times of 100000 calls for sfmt_pure:gen_rand32/1, sfmt_pure:uniform_s/1, and rand:uniform_s/1 (with exsplus algorithm).

Function Details

reds/1

reds(I::integer()) -> {integer(), tuple(), tuple()}

counting reduction of sfmt_pure:init_gen_rand/1. Code was copied from Steve Vinoski's presentation sample code at https://github.com/vinoski/bitwise under src/bitwise.erl

test_short_speed/0

test_short_speed() -> ok

running speed test for 10 times of 100000 calls for sfmt_pure:gen_rand32/1, sfmt_pure:uniform_s/1, and rand:uniform_s/1 (with exsplus algorithm).

test_speed/0

test_speed() -> ok

running speed test for 100 times of 100000 calls for sfmt_pure:gen_rand32/1, sfmt_pure:uniform_s/1, and rand:uniform_s/1 (with exsplus algorithm).


Generated by EDoc