Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60359 - in trunk/libs/random: doc example src test
From: steven_at_[hidden]
Date: 2010-03-08 12:55:24


Author: steven_watanabe
Date: 2010-03-08 12:55:21 EST (Mon, 08 Mar 2010)
New Revision: 60359
URL: http://svn.boost.org/trac/boost/changeset/60359

Log:
Fix inspection failures for the Random library
Text files modified:
   trunk/libs/random/doc/Jamfile.v2 | 2
   trunk/libs/random/doc/concepts.qbk | 8 ++++
   trunk/libs/random/doc/distribution_performance_linux.qbk | 8 ++++
   trunk/libs/random/doc/distribution_performance_windows.qbk | 8 ++++
   trunk/libs/random/doc/distributions.qbk | 8 ++++
   trunk/libs/random/doc/generator_defs.qbk | 8 ++++
   trunk/libs/random/doc/generator_performance_linux.qbk | 8 ++++
   trunk/libs/random/doc/generator_performance_windows.qbk | 8 ++++
   trunk/libs/random/doc/generators.qbk | 8 ++++
   trunk/libs/random/doc/nondet_random.qbk | 8 ++++
   trunk/libs/random/doc/performance.qbk | 8 ++++
   trunk/libs/random/doc/performance_data.qbk | 8 ++++
   trunk/libs/random/doc/random_number_generator.qbk | 8 ++++
   trunk/libs/random/doc/tutorial.qbk | 8 ++++
   trunk/libs/random/example/die.cpp | 9 +++++
   trunk/libs/random/example/weighted_die.cpp | 9 +++++
   trunk/libs/random/src/random_device.cpp | 2
   trunk/libs/random/test/random_test.cpp | 2
   trunk/libs/random/test/statistic_tests.cpp | 68 ++++++++++++++++++++--------------------
   trunk/libs/random/test/validate.cpp | 32 +++++++++---------
   20 files changed, 175 insertions(+), 53 deletions(-)

Modified: trunk/libs/random/doc/Jamfile.v2
==============================================================================
--- trunk/libs/random/doc/Jamfile.v2 (original)
+++ trunk/libs/random/doc/Jamfile.v2 2010-03-08 12:55:21 EST (Mon, 08 Mar 2010)
@@ -3,7 +3,7 @@
 # Copyright (c) 2009
 # Steven Watanabe
 #
-# Distributed under the Boost Sofware License, Version 1.0. (See
+# Distributed under the Boost Software License, Version 1.0. (See
 # accompanying file LICENSE_1_0.txt or copy at
 # http://www.boost.org/LICENSE_1_0.txt)
 

Modified: trunk/libs/random/doc/concepts.qbk
==============================================================================
--- trunk/libs/random/doc/concepts.qbk (original)
+++ trunk/libs/random/doc/concepts.qbk 2010-03-08 12:55:21 EST (Mon, 08 Mar 2010)
@@ -1,3 +1,11 @@
+[/
+ / Copyright (c) 2009 Steven Watanabe
+ /
+ / Distributed under the Boost Software License, Version 1.0. (See
+ / accompanying file LICENSE_1_0.txt or copy at
+ / http://www.boost.org/LICENSE_1_0.txt)
+]
+
 [section Introduction]
 
 Random numbers are required in a number of different problem domains, such as

Modified: trunk/libs/random/doc/distribution_performance_linux.qbk
==============================================================================
--- trunk/libs/random/doc/distribution_performance_linux.qbk (original)
+++ trunk/libs/random/doc/distribution_performance_linux.qbk 2010-03-08 12:55:21 EST (Mon, 08 Mar 2010)
@@ -1,3 +1,11 @@
+[/
+ / Copyright (c) 2009 Steven Watanabe
+ /
+ / Distributed under the Boost Software License, Version 1.0. (See
+ / accompanying file LICENSE_1_0.txt or copy at
+ / http://www.boost.org/LICENSE_1_0.txt)
+]
+
 [table Distributions (Linux)
   [[\[M rn/sec\]][minstd_rand][kreutzer1986][mt19937][lagged_fibonacci607]]
   [[uniform_int][31.25][30.581][11.5607][16.0514]]

Modified: trunk/libs/random/doc/distribution_performance_windows.qbk
==============================================================================
--- trunk/libs/random/doc/distribution_performance_windows.qbk (original)
+++ trunk/libs/random/doc/distribution_performance_windows.qbk 2010-03-08 12:55:21 EST (Mon, 08 Mar 2010)
@@ -1,3 +1,11 @@
+[/
+ / Copyright (c) 2009 Steven Watanabe
+ /
+ / Distributed under the Boost Software License, Version 1.0. (See
+ / accompanying file LICENSE_1_0.txt or copy at
+ / http://www.boost.org/LICENSE_1_0.txt)
+]
+
 [table Distributions (Windows)
   [[\[M rn/sec\]][minstd_rand][kreutzer1986][mt19937][lagged_fibonacci607]]
   [[uniform_int][14.7449][27.465][6.65292][28.5714]]

Modified: trunk/libs/random/doc/distributions.qbk
==============================================================================
--- trunk/libs/random/doc/distributions.qbk (original)
+++ trunk/libs/random/doc/distributions.qbk 2010-03-08 12:55:21 EST (Mon, 08 Mar 2010)
@@ -1,3 +1,11 @@
+[/
+ / Copyright (c) 2009 Steven Watanabe
+ /
+ / Distributed under the Boost Software License, Version 1.0. (See
+ / accompanying file LICENSE_1_0.txt or copy at
+ / http://www.boost.org/LICENSE_1_0.txt)
+]
+
 In addition to the [link boost_random.reference.generators random number generators],
 this library provides distribution functions which map one distribution
 (often a uniform distribution provided by some generator) to another.

Modified: trunk/libs/random/doc/generator_defs.qbk
==============================================================================
--- trunk/libs/random/doc/generator_defs.qbk (original)
+++ trunk/libs/random/doc/generator_defs.qbk 2010-03-08 12:55:21 EST (Mon, 08 Mar 2010)
@@ -1,3 +1,11 @@
+[/
+ / Copyright (c) 2009 Steven Watanabe
+ /
+ / Distributed under the Boost Software License, Version 1.0. (See
+ / accompanying file LICENSE_1_0.txt or copy at
+ / http://www.boost.org/LICENSE_1_0.txt)
+]
+
 [template rand48_speed[] 68%]
 [template lrand48_run_time_speed[] 12%]
 [template minstd_rand0_speed[] 32%]

Modified: trunk/libs/random/doc/generator_performance_linux.qbk
==============================================================================
--- trunk/libs/random/doc/generator_performance_linux.qbk (original)
+++ trunk/libs/random/doc/generator_performance_linux.qbk 2010-03-08 12:55:21 EST (Mon, 08 Mar 2010)
@@ -1,3 +1,11 @@
+[/
+ / Copyright (c) 2009 Steven Watanabe
+ /
+ / Distributed under the Boost Software License, Version 1.0. (See
+ / accompanying file LICENSE_1_0.txt or copy at
+ / http://www.boost.org/LICENSE_1_0.txt)
+]
+
 [table Basic Generators (Linux)
   [[generator] [M rn/sec] [time per random number \[nsec\]] [relative speed compared to fastest \[percent\]]]
   [[rand48][312.5][3.2][100%]]

Modified: trunk/libs/random/doc/generator_performance_windows.qbk
==============================================================================
--- trunk/libs/random/doc/generator_performance_windows.qbk (original)
+++ trunk/libs/random/doc/generator_performance_windows.qbk 2010-03-08 12:55:21 EST (Mon, 08 Mar 2010)
@@ -1,3 +1,11 @@
+[/
+ / Copyright (c) 2009 Steven Watanabe
+ /
+ / Distributed under the Boost Software License, Version 1.0. (See
+ / accompanying file LICENSE_1_0.txt or copy at
+ / http://www.boost.org/LICENSE_1_0.txt)
+]
+
 [table Basic Generators (Windows)
   [[generator] [M rn/sec] [time per random number \[nsec\]] [relative speed compared to fastest \[percent\]]]
   [[rand48][98.5222][10.15][67%]]

Modified: trunk/libs/random/doc/generators.qbk
==============================================================================
--- trunk/libs/random/doc/generators.qbk (original)
+++ trunk/libs/random/doc/generators.qbk 2010-03-08 12:55:21 EST (Mon, 08 Mar 2010)
@@ -1,3 +1,11 @@
+[/
+ / Copyright (c) 2009 Steven Watanabe
+ /
+ / Distributed under the Boost Software License, Version 1.0. (See
+ / accompanying file LICENSE_1_0.txt or copy at
+ / http://www.boost.org/LICENSE_1_0.txt)
+]
+
 This library provides several [prng pseudo-random number generators]. The
 quality of a [prng pseudo random number generator] crucially depends on both
 the algorithm and its parameters. This library implements the algorithms as

Modified: trunk/libs/random/doc/nondet_random.qbk
==============================================================================
--- trunk/libs/random/doc/nondet_random.qbk (original)
+++ trunk/libs/random/doc/nondet_random.qbk 2010-03-08 12:55:21 EST (Mon, 08 Mar 2010)
@@ -1,3 +1,11 @@
+[/
+ / Copyright (c) 2009 Steven Watanabe
+ /
+ / Distributed under the Boost Software License, Version 1.0. (See
+ / accompanying file LICENSE_1_0.txt or copy at
+ / http://www.boost.org/LICENSE_1_0.txt)
+]
+
 [section Header <boost/nondet_random.hpp> Synopsis]
 
   namespace boost {

Modified: trunk/libs/random/doc/performance.qbk
==============================================================================
--- trunk/libs/random/doc/performance.qbk (original)
+++ trunk/libs/random/doc/performance.qbk 2010-03-08 12:55:21 EST (Mon, 08 Mar 2010)
@@ -1,3 +1,11 @@
+[/
+ / Copyright (c) 2009 Steven Watanabe
+ /
+ / Distributed under the Boost Software License, Version 1.0. (See
+ / accompanying file LICENSE_1_0.txt or copy at
+ / http://www.boost.org/LICENSE_1_0.txt)
+]
+
 For some people, performance of random number generation is an important
 consideration when choosing a random number generator or a particular
 distribution function. This page provides numerous performance tests with

Modified: trunk/libs/random/doc/performance_data.qbk
==============================================================================
--- trunk/libs/random/doc/performance_data.qbk (original)
+++ trunk/libs/random/doc/performance_data.qbk 2010-03-08 12:55:21 EST (Mon, 08 Mar 2010)
@@ -1,3 +1,11 @@
+[/
+ / Copyright (c) 2009 Steven Watanabe
+ /
+ / Distributed under the Boost Software License, Version 1.0. (See
+ / accompanying file LICENSE_1_0.txt or copy at
+ / http://www.boost.org/LICENSE_1_0.txt)
+]
+
 [template rand48_speed[] 100%]
 [template lrand48_run_time_speed[] 96%]
 [template lrand48__C_library__speed[] 21%]

Modified: trunk/libs/random/doc/random_number_generator.qbk
==============================================================================
--- trunk/libs/random/doc/random_number_generator.qbk (original)
+++ trunk/libs/random/doc/random_number_generator.qbk 2010-03-08 12:55:21 EST (Mon, 08 Mar 2010)
@@ -1,3 +1,11 @@
+[/
+ / Copyright (c) 2009 Steven Watanabe
+ /
+ / Distributed under the Boost Software License, Version 1.0. (See
+ / accompanying file LICENSE_1_0.txt or copy at
+ / http://www.boost.org/LICENSE_1_0.txt)
+]
+
 [section Synopsis of miscellaneous decorators in header <boost/random.hpp>]
 
   namespace boost {

Modified: trunk/libs/random/doc/tutorial.qbk
==============================================================================
--- trunk/libs/random/doc/tutorial.qbk (original)
+++ trunk/libs/random/doc/tutorial.qbk 2010-03-08 12:55:21 EST (Mon, 08 Mar 2010)
@@ -1,3 +1,11 @@
+[/
+ / Copyright (c) 2009 Steven Watanabe
+ /
+ / Distributed under the Boost Software License, Version 1.0. (See
+ / accompanying file LICENSE_1_0.txt or copy at
+ / http://www.boost.org/LICENSE_1_0.txt)
+]
+
 [section Generating integers in a range]
 
 [import ../example/die.cpp]

Modified: trunk/libs/random/example/die.cpp
==============================================================================
--- trunk/libs/random/example/die.cpp (original)
+++ trunk/libs/random/example/die.cpp 2010-03-08 12:55:21 EST (Mon, 08 Mar 2010)
@@ -1,3 +1,12 @@
+// die.cpp
+//
+// Copyright (c) 2009
+// Steven Watanabe
+//
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
 //[die
 /*`
     For the source of this example see

Modified: trunk/libs/random/example/weighted_die.cpp
==============================================================================
--- trunk/libs/random/example/weighted_die.cpp (original)
+++ trunk/libs/random/example/weighted_die.cpp 2010-03-08 12:55:21 EST (Mon, 08 Mar 2010)
@@ -1,3 +1,12 @@
+// weighted_die.cpp
+//
+// Copyright (c) 2009
+// Steven Watanabe
+//
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
 //[weighted_die
 /*`
     For the source of this example see

Modified: trunk/libs/random/src/random_device.cpp
==============================================================================
--- trunk/libs/random/src/random_device.cpp (original)
+++ trunk/libs/random/src/random_device.cpp 2010-03-08 12:55:21 EST (Mon, 08 Mar 2010)
@@ -111,7 +111,7 @@
 
 #if defined(__GNUC__) && defined(_CXXRT_STD_NAME)
 // I have severe difficulty to get the POSIX includes to work with
-// -fhonor-std and Dietmar Kühl's standard C++ library. Hack around that
+// -fhonor-std and Dietmar Kuhl's standard C++ library. Hack around that
 // problem for now.
 extern "C" {
 static const int O_RDONLY = 0;

Modified: trunk/libs/random/test/random_test.cpp
==============================================================================
--- trunk/libs/random/test/random_test.cpp (original)
+++ trunk/libs/random/test/random_test.cpp 2010-03-08 12:55:21 EST (Mon, 08 Mar 2010)
@@ -163,7 +163,7 @@
 #endif
 
 #if !defined(BOOST_NO_INT64_T) && !defined(BOOST_NO_INTEGRAL_INT64_T)
-// testcase by Mario R�tti
+// testcase by Mario Rutti
 class ruetti_gen
 {
 public:

Modified: trunk/libs/random/test/statistic_tests.cpp
==============================================================================
--- trunk/libs/random/test/statistic_tests.cpp (original)
+++ trunk/libs/random/test/statistic_tests.cpp 2010-03-08 12:55:21 EST (Mon, 08 Mar 2010)
@@ -41,7 +41,7 @@
 {
 protected:
   explicit test_base(test_environment & env) : environment(env) { }
- void check(double val) const;
+ void check_(double val) const;
 private:
   test_environment & environment;
 };
@@ -62,9 +62,9 @@
     std::cout << "equidistribution: " << std::flush;
     equidistribution_experiment equi(classes);
     variate_generator<RNG&, uniform_smallint<> > uint_linear(rng, uniform_smallint<>(0, classes-1));
- check(run_experiment(test_distrib_chi_square,
+ check_(run_experiment(test_distrib_chi_square,
                          experiment_generator(equi, uint_linear, n1), n2));
- check(run_experiment(test_distrib_chi_square,
+ check_(run_experiment(test_distrib_chi_square,
                          experiment_generator(equi, uint_linear, n1), 2*n2));
 
     std::cout << " 2D: " << std::flush;
@@ -72,9 +72,9 @@
     unsigned int root = static_cast<unsigned int>(std::sqrt(double(classes)));
     assert(root * root == classes);
     variate_generator<RNG&, uniform_smallint<> > uint_square(rng, uniform_smallint<>(0, root-1));
- check(run_experiment(test_distrib_chi_square,
+ check_(run_experiment(test_distrib_chi_square,
                          experiment_generator(equi_2d, uint_square, n1), n2));
- check(run_experiment(test_distrib_chi_square,
+ check_(run_experiment(test_distrib_chi_square,
                          experiment_generator(equi_2d, uint_square, n1), 2*n2));
     std::cout << std::endl;
   }
@@ -104,9 +104,9 @@
     using namespace boost;
     std::cout << "KS: " << std::flush;
     kolmogorov_experiment ks(n1);
- check(run_experiment(test_distrib_chi_square,
+ check_(run_experiment(test_distrib_chi_square,
                          ks_experiment_generator(ks, rng, dist), n2));
- check(run_experiment(test_distrib_chi_square,
+ check_(run_experiment(test_distrib_chi_square,
                          ks_experiment_generator(ks, rng, dist), 2*n2));
     std::cout << std::endl;
   }
@@ -130,16 +130,16 @@
     std::cout << "runs: up: " << std::flush;
     runs_experiment<true> r_up(classes);
 
- check(run_experiment(test_distrib_chi_square,
+ check_(run_experiment(test_distrib_chi_square,
                          experiment_generator(r_up, rng, n1), n2));
- check(run_experiment(test_distrib_chi_square,
+ check_(run_experiment(test_distrib_chi_square,
                          experiment_generator(r_up, rng, n1), 2*n2));
 
     std::cout << " down: " << std::flush;
     runs_experiment<false> r_down(classes);
- check(run_experiment(test_distrib_chi_square,
+ check_(run_experiment(test_distrib_chi_square,
                          experiment_generator(r_down, rng, n1), n2));
- check(run_experiment(test_distrib_chi_square,
+ check_(run_experiment(test_distrib_chi_square,
                          experiment_generator(r_down, rng, n1), 2*n2));
 
     std::cout << std::endl;
@@ -175,9 +175,9 @@
     std::cout << "gaps: " << std::flush;
     gap_experiment gap(classes, dist, 0.2, 0.8);
 
- check(run_experiment(test_distrib_chi_square,
+ check_(run_experiment(test_distrib_chi_square,
                          experiment_generator(gap, rng, n1), n2));
- check(run_experiment(test_distrib_chi_square,
+ check_(run_experiment(test_distrib_chi_square,
                          experiment_generator(gap, rng, n1), 2*n2));
 
     std::cout << std::endl;
@@ -203,9 +203,9 @@
     std::cout << "poker: " << std::flush;
     poker_experiment poker(8, classes);
     variate_generator<RNG&, uniform_smallint<> > usmall(rng, uniform_smallint<>(0, 7));
- check(run_experiment(test_distrib_chi_square,
+ check_(run_experiment(test_distrib_chi_square,
                          experiment_generator(poker, usmall, n1), n2));
- check(run_experiment(test_distrib_chi_square,
+ check_(run_experiment(test_distrib_chi_square,
                          experiment_generator(poker, usmall, n1), 2*n2));
     std::cout << std::endl;
   }
@@ -231,9 +231,9 @@
     coupon_collector_experiment coupon(5, classes);
 
     variate_generator<RNG&, uniform_smallint<> > usmall(rng, uniform_smallint<>(0, 4));
- check(run_experiment(test_distrib_chi_square,
+ check_(run_experiment(test_distrib_chi_square,
                          experiment_generator(coupon, usmall, n1), n2));
- check(run_experiment(test_distrib_chi_square,
+ check_(run_experiment(test_distrib_chi_square,
                          experiment_generator(coupon, usmall, n1), 2*n2));
     std::cout << std::endl;
   }
@@ -261,9 +261,9 @@
     
     // generator_reference_t<RNG> gen_ref(rng);
     RNG& gen_ref(rng);
- check(run_experiment(test_distrib_chi_square,
+ check_(run_experiment(test_distrib_chi_square,
                          experiment_generator(perm, gen_ref, n1), n2));
- check(run_experiment(test_distrib_chi_square,
+ check_(run_experiment(test_distrib_chi_square,
                          experiment_generator(perm, gen_ref, n1), 2*n2));
     std::cout << std::endl;
   }
@@ -287,8 +287,8 @@
     using namespace boost;
     std::cout << "maximum-of-t: " << std::flush;
     maximum_experiment<RNG> mx(rng, n1, 5);
- check(run_experiment(test_distrib_chi_square, mx, n2));
- check(run_experiment(test_distrib_chi_square, mx, 2*n2));
+ check_(run_experiment(test_distrib_chi_square, mx, n2));
+ check_(run_experiment(test_distrib_chi_square, mx, 2*n2));
     std::cout << std::endl;
   }
 private:
@@ -310,9 +310,9 @@
     std::cout << "birthday spacing: " << std::flush;
     boost::variate_generator<RNG&, boost::uniform_int<> > uni(rng, boost::uniform_int<>(0, (1<<25)-1));
     birthday_spacing_experiment bsp(4, 512, (1<<25));
- check(run_experiment(test_distrib_chi_square,
+ check_(run_experiment(test_distrib_chi_square,
                          experiment_generator(bsp, uni, n1), n2));
- check(run_experiment(test_distrib_chi_square,
+ check_(run_experiment(test_distrib_chi_square,
                          experiment_generator(bsp, uni, n1), 2*n2));
     std::cout << std::endl;
   }
@@ -365,7 +365,7 @@
     return result;
   }
 
- bool check(double chi_square_value) const
+ bool check_(double chi_square_value) const
   {
     return check_confidence(chi_square_value, confidence_chi_square_quantil);
   }
@@ -425,9 +425,9 @@
   birthday_test bday_test;
 };
 
-void test_base::check(double val) const
+void test_base::check_(double val) const
 {
- environment.check(val);
+ environment.check_(val);
 }
 
 class program_args
@@ -439,7 +439,7 @@
       names.insert(argv + 1, argv + argc);
     }
   }
- bool check(const std::string & test_name) const
+ bool check_(const std::string & test_name) const
   {
     return(names.empty() || names.find(test_name) != names.end());
   }
@@ -453,7 +453,7 @@
   test_environment env(0.99);
 
 #define TEST(name) \
- if(args.check(#name)) \
+ if(args.check_(#name)) \
     env.run_test<boost::name>(#name)
 
   TEST(minstd_rand0);
@@ -487,17 +487,17 @@
   TEST(ranlux64_3_01);
   TEST(ranlux64_4_01);
   
- if(args.check("normal"))
+ if(args.check_("normal"))
     env.run_test<boost::mt19937>("normal", boost::normal_distribution<>(), boost::math::normal());
- if(args.check("triangle"))
+ if(args.check_("triangle"))
     env.run_test<boost::mt19937>("triangle", boost::triangle_distribution<>(0, 1, 3), boost::math::triangular(0, 1, 3));
- if(args.check("cauchy"))
+ if(args.check_("cauchy"))
     env.run_test<boost::mt19937>("cauchy", boost::cauchy_distribution<>(), boost::math::cauchy());
- if(args.check("gamma"))
+ if(args.check_("gamma"))
     env.run_test<boost::mt19937>("gamma", boost::gamma_distribution<>(1), boost::math::gamma_distribution<>(1));
- if(args.check("exponential"))
+ if(args.check_("exponential"))
     env.run_test<boost::mt19937>("exponential", boost::exponential_distribution<>(), boost::math::exponential());
- if(args.check("lognormal"))
+ if(args.check_("lognormal"))
     env.run_test<boost::mt19937>("lognormal", boost::lognormal_distribution<>(1, 1),
       boost::math::lognormal(std::log(1.0/std::sqrt(2.0)), std::sqrt(std::log(2.0))));
 }

Modified: trunk/libs/random/test/validate.cpp
==============================================================================
--- trunk/libs/random/test/validate.cpp (original)
+++ trunk/libs/random/test/validate.cpp 2010-03-08 12:55:21 EST (Mon, 08 Mar 2010)
@@ -44,45 +44,45 @@
  */
 
 // own run
-bool check(unsigned long x, const boost::mt11213b&) { return x == 3809585648U; }
+bool check_(unsigned long x, const boost::mt11213b&) { return x == 3809585648U; }
 
 // validation by experiment from mt19937.c
-bool check(unsigned long x, const boost::mt19937&) { return x == 4123659995U; }
+bool check_(unsigned long x, const boost::mt19937&) { return x == 4123659995U; }
 
 // validation values from the publications
-bool check(int x, const boost::minstd_rand0&) { return x == 1043618065; }
+bool check_(int x, const boost::minstd_rand0&) { return x == 1043618065; }
 
 // validation values from the publications
-bool check(int x, const boost::minstd_rand&) { return x == 399268537; }
+bool check_(int x, const boost::minstd_rand&) { return x == 399268537; }
 
 #if !defined(BOOST_NO_INT64_T) && !defined(BOOST_NO_INTEGRAL_INT64_T)
 // by experiment from lrand48()
-bool check(unsigned long x, const boost::rand48&) { return x == 1993516219; }
+bool check_(unsigned long x, const boost::rand48&) { return x == 1993516219; }
 #endif
 
 // ????
-bool check(unsigned long x, const boost::taus88&) { return x == 3535848941U; }
+bool check_(unsigned long x, const boost::taus88&) { return x == 3535848941U; }
 
 // ????
-bool check(int x, const boost::ecuyer1988&) { return x == 2060321752; }
+bool check_(int x, const boost::ecuyer1988&) { return x == 2060321752; }
 
 // validation by experiment from Harry Erwin's generator.h (private e-mail)
-bool check(unsigned int x, const boost::kreutzer1986&) { return x == 139726; }
+bool check_(unsigned int x, const boost::kreutzer1986&) { return x == 139726; }
 
-bool check(double x, const boost::lagged_fibonacci607&) { return std::abs(x-0.401269) < 1e-5; }
+bool check_(double x, const boost::lagged_fibonacci607&) { return std::abs(x-0.401269) < 1e-5; }
 
 // principal operation validated with CLHEP, values by experiment
-bool check(unsigned long x, const boost::ranlux3&) { return x == 5957620; }
-bool check(unsigned long x, const boost::ranlux4&) { return x == 8587295; }
+bool check_(unsigned long x, const boost::ranlux3&) { return x == 5957620; }
+bool check_(unsigned long x, const boost::ranlux4&) { return x == 8587295; }
 
-bool check(float x, const boost::ranlux3_01&)
+bool check_(float x, const boost::ranlux3_01&)
 { return std::abs(x-5957620/std::pow(2.0f,24)) < 1e-6; }
-bool check(float x, const boost::ranlux4_01&)
+bool check_(float x, const boost::ranlux4_01&)
 { return std::abs(x-8587295/std::pow(2.0f,24)) < 1e-6; }
 
-bool check(double x, const boost::ranlux64_3_01&)
+bool check_(double x, const boost::ranlux64_3_01&)
 { return std::abs(x-0.838413) < 1e-6; }
-bool check(double x, const boost::ranlux64_4_01&)
+bool check_(double x, const boost::ranlux64_4_01&)
 { return std::abs(x-0.59839) < 1e-6; }
 
 template<class PRNG>
@@ -94,7 +94,7 @@
     rng();
   typename PRNG::result_type val = rng();
   // make sure the validation function is a static member
- bool result = check(val, rng);
+ bool result = check_(val, rng);
   
   // allow for a simple eyeball check for MSVC instantiation brokenness
   // (if the numbers for all generators are the same, it's obviously broken)


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk