Commit Graph

633 Commits

Author SHA1 Message Date
Steven Watanabe
96113f9e2c Update the last tests left in random_test.cpp and move them to the appropriate places.
[SVN r69991]
2011-03-14 23:37:39 +00:00
Steven Watanabe
5eaec807ff Update docs for random_number_generator.
[SVN r69986]
2011-03-14 22:05:52 +00:00
Steven Watanabe
04131d73f3 Add missing property
[SVN r69979]
2011-03-14 20:43:45 +00:00
Steven Watanabe
0a430d620a Move random_number_generator into namespace random, tweak the implementation a bit, and add a test case.
[SVN r69978]
2011-03-14 20:38:12 +00:00
Steven Watanabe
6b5c6a84d8 Automate detection of mt19937ar.c
[SVN r69977]
2011-03-14 20:20:08 +00:00
Steven Watanabe
30a2b59c7b Make sure that discard is always provided by using uintmax_t instead of ulong_long_type.
[SVN r69976]
2011-03-14 20:09:37 +00:00
Steven Watanabe
0265c4371d Remove pass_through_engine. Make uniform_int_float more correct.
[SVN r69975]
2011-03-14 19:42:32 +00:00
Steven Watanabe
2690f16a2c Some optimizations for ranlux.
[SVN r69969]
2011-03-14 02:46:15 +00:00
Steven Watanabe
cfb5ec9825 Add missing file.
[SVN r69961]
2011-03-13 18:28:07 +00:00
Steven Watanabe
d096eb569f Make seeding more consistent and add some tests to lock down the algorithms.
[SVN r69912]
2011-03-13 04:49:34 +00:00
Steven Watanabe
ed945c9eb1 A separate WeightType doesn't make sense for piecewise_linear_distribution.
[SVN r68968]
2011-02-17 16:28:12 +00:00
Steven Watanabe
b0b7fb471a Apparently, neither gcc 4.5, nor msvc 10 can optimize away this loop.
[SVN r68874]
2011-02-14 22:44:10 +00:00
Steven Watanabe
3738b7e4ff Update performance numbers.
[SVN r68872]
2011-02-14 21:31:10 +00:00
Steven Watanabe
428aefd98f Clean up random_demo. Compiler workarounds don't belong in examples even when they are needed, and I suspect that these are out of date.
[SVN r68858]
2011-02-14 04:07:41 +00:00
Steven Watanabe
e4fbc88c54 Optimize linear_congruential_engine::discard.
[SVN r68851]
2011-02-13 20:21:15 +00:00
Steven Watanabe
e4cca265d0 Use unsigned types everywhere to be compatible with the standard, which is more restrictive in this respect.
[SVN r68823]
2011-02-13 04:05:26 +00:00
Steven Watanabe
8c30753bf4 Sync the docs with the current library.
[SVN r68822]
2011-02-13 03:28:59 +00:00
Steven Watanabe
21d66a0a2c Fix problems reported by inspect.
[SVN r68817]
2011-02-12 20:03:17 +00:00
Steven Watanabe
d3e19bbc4f #include everything in boost/random.hpp
[SVN r68815]
2011-02-12 19:07:36 +00:00
Steven Watanabe
6858fa9514 Update random_device.
[SVN r68814]
2011-02-12 18:41:28 +00:00
Steven Watanabe
6962916b79 Implement generate_canonical.
[SVN r68813]
2011-02-12 18:06:40 +00:00
Steven Watanabe
8117e68595 Use INT64_C where appropriate. This should fix some vacpp and gcc 3.4.6 errors.
[SVN r68808]
2011-02-12 15:48:51 +00:00
Steven Watanabe
fabd860d65 Maybe fix sun?
[SVN r68806]
2011-02-12 15:31:42 +00:00
Steven Watanabe
b5b8a2d4df Implement independent_bits_engine.
[SVN r68804]
2011-02-12 15:28:53 +00:00
Steven Watanabe
a9f049de2a Codegear fixes.
[SVN r68789]
2011-02-11 22:07:04 +00:00
Steven Watanabe
46a47b2a9d Help pgi?
[SVN r68788]
2011-02-11 21:32:07 +00:00
Steven Watanabe
9bce32507a Reduce the default number of trials, so the tests complete in a reasonable amount of time.
[SVN r68787]
2011-02-11 21:09:46 +00:00
Steven Watanabe
466c39c392 Make sure all engines are tested. Kill validate.cpp, since its functionality is now covered by the main generator tests.
[SVN r68784]
2011-02-11 20:13:48 +00:00
Steven Watanabe
edf89f7503 Move all generator tests to the new framework.
[SVN r68783]
2011-02-11 19:16:29 +00:00
Steven Watanabe
67d7b20f57 Refactor distribution tests. Remove spurious dependency on boost/random.hpp
[SVN r68770]
2011-02-11 02:13:59 +00:00
Steven Watanabe
b653381ac4 Fix constructor.
[SVN r68769]
2011-02-11 02:11:57 +00:00
Steven Watanabe
67843975c0 Update xor_combine to match C++0x. min/max are still broken.
[SVN r68767]
2011-02-11 01:16:34 +00:00
Steven Watanabe
c646f4babb Update linear_feedback_shift_engine to match C++0x.
[SVN r68759]
2011-02-10 03:30:27 +00:00
Steven Watanabe
b5be1f6d9e Factor out some common seeding code.
[SVN r68758]
2011-02-10 01:27:11 +00:00
Steven Watanabe
0908708463 Update lagged_fibonacci to match C++0x.
[SVN r68754]
2011-02-09 22:34:46 +00:00
Steven Watanabe
c78729ebf5 Update inversive_congruential.
[SVN r68748]
2011-02-09 19:19:25 +00:00
Steven Watanabe
3cfc38c4f7 Fix const_mod to work in all cases.
[SVN r68747]
2011-02-09 16:49:49 +00:00
Steven Watanabe
a22d42305a Fix #include guard. Fixes #5171.
[SVN r68743]
2011-02-09 02:07:54 +00:00
Steven Watanabe
de24e82891 Update additive_combine.
[SVN r68727]
2011-02-08 17:46:48 +00:00
Steven Watanabe
5db9c081df Simplify variate_generator.
[SVN r68658]
2011-02-05 17:44:40 +00:00
Steven Watanabe
411eeb9c26 Update uniform_int and uniform_real.
[SVN r68647]
2011-02-05 05:54:11 +00:00
Steven Watanabe
b2bfbc0b75 Update uniform_smallint.
[SVN r68644]
2011-02-05 01:15:56 +00:00
Steven Watanabe
70ee378773 Update uniform_on_sphere.
[SVN r68631]
2011-02-03 21:16:56 +00:00
Steven Watanabe
23761be280 Add uniform_real_distribution to match C++0x.
[SVN r68444]
2011-01-25 20:08:07 +00:00
Steven Watanabe
a9a48b3330 Add uniform_int_distribution to match C++0x.
[SVN r68440]
2011-01-25 19:16:54 +00:00
Steven Watanabe
f051b0730e Update triangle_distribution to match C++0x.
[SVN r68428]
2011-01-25 01:17:50 +00:00
Steven Watanabe
1744f7c612 Update lognormal_distribution to match C++0x.
[SVN r68424]
2011-01-24 21:18:40 +00:00
Steven Watanabe
664bef0373 Update geometric_distribution to match C++0x.
[SVN r68410]
2011-01-24 06:28:59 +00:00
Steven Watanabe
0109f6e645 Update cauchy_distribution to match C++0x.
[SVN r68406]
2011-01-23 23:33:41 +00:00
Steven Watanabe
8b1fda2098 Update bernoulli_distribution to match C++0x.
[SVN r68375]
2011-01-23 02:14:26 +00:00