Module sfmt_tests

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

Copyright © 2010-2014 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/0counting reduction of sfmt:gen_rand_all/1.
reds_pure/0counting reduction of sfmt_pure:gen_rand_all/1.
test_short_speed/0running speed test for 10 times of 10000 calls for sfmt:gen_rand32/1, sfmt:uniform_s/1, rand:uniform_s/1 (with exsplus algorithm), sfmt:gen_rand32_max/2, and rand:uniform_s/2.
test_speed/0running speed test for 100 times of 100000 calls for sfmt:gen_rand32/1, sfmt:uniform_s/1, rand:uniform_s/1 (with exsplus algorithm), sfmt:gen_rand32_max/2, and rand:uniform_s/2.

Function Details

reds/0

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

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

reds_pure/0

reds_pure() -> {integer(), tuple(), tuple()}

counting reduction of sfmt_pure:gen_rand_all/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 10000 calls for sfmt:gen_rand32/1, sfmt:uniform_s/1, rand:uniform_s/1 (with exsplus algorithm), sfmt:gen_rand32_max/2, and rand:uniform_s/2.

test_speed/0

test_speed() -> ok

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


Generated by EDoc