|
Boost-Commit : |
From: john_at_[hidden]
Date: 2007-08-03 13:03:20
Author: johnmaddock
Date: 2007-08-03 13:03:12 EDT (Fri, 03 Aug 2007)
New Revision: 38423
URL: http://svn.boost.org/trac/boost/changeset/38423
Log:
Fixed a few warnings and updated the Jamfile to build and run everything.
Text files modified:
sandbox/math_toolkit/libs/math/example/Jamfile.v2 | 52 ++++++++++++++++++++++++---------------
sandbox/math_toolkit/libs/math/example/chi_square_std_dev_test.cpp | 3 +
sandbox/math_toolkit/libs/math/example/policy_eg_2.cpp | 3 +
sandbox/math_toolkit/libs/math/example/policy_eg_3.cpp | 3 +
sandbox/math_toolkit/libs/math/example/students_t_example1.cpp | 3 +
sandbox/math_toolkit/libs/math/example/students_t_single_sample.cpp | 3 +
6 files changed, 42 insertions(+), 25 deletions(-)
Modified: sandbox/math_toolkit/libs/math/example/Jamfile.v2
==============================================================================
--- sandbox/math_toolkit/libs/math/example/Jamfile.v2 (original)
+++ sandbox/math_toolkit/libs/math/example/Jamfile.v2 2007-08-03 13:03:12 EDT (Fri, 03 Aug 2007)
@@ -10,33 +10,45 @@
project
: requirements
<toolset>gcc:<cxxflags>-Wno-missing-braces
- <toolset>msvc:<cxxflags>-W4
+ <toolset>darwin:<cxxflags>-Wno-missing-braces
+ <toolset>acc:<cxxflags>+W2068,2461,2236,4070
+ <toolset>intel:<cxxflags>-Qwd264,239
+ <toolset>msvc:<warnings>all
+ <toolset>msvc:<asynch-exceptions>on
+ <toolset>msvc:<cxxflags>/wd4996
+ <toolset>msvc:<cxxflags>/wd4512
+ <toolset>msvc:<cxxflags>/wd4610
+ <toolset>msvc:<cxxflags>/wd4510
+ <toolset>msvc:<cxxflags>/wd4127
+ <toolset>msvc:<cxxflags>/wd4701
<include>../../..
;
-run students_t_example1.cpp ;
-run students_t_example2.cpp ;
-run students_t_example3.cpp ;
-run students_t_single_sample.cpp ;
-run students_t_two_samples.cpp ;
-
+run C_error_policy_example.cpp ;
+run Neg_binomial_confidence_limits.cpp ;
run binomial_confidence_limits.cpp ;
+run binomial_example3.cpp ;
run binomial_sample_sizes.cpp ;
run chi_square_std_dev_test.cpp ;
-run neg_binomial_sample_sizes.cpp ;
-run f_test.cpp ;
run distribution_construction.cpp ;
run error_handling_example.cpp ;
-run error_policy_example.cpp ;
run error_policies_example.cpp ;
-
-
-
-
-
-
-
-
-
-
+run error_policy_example.cpp ;
+run f_test.cpp ;
+run neg_binomial_sample_sizes.cpp ;
+run negative_binomial_construction_examples.cpp ;
+run negative_binomial_example1.cpp ;
+run negative_binomial_example2.cpp ;
+run negative_binomial_example3.cpp ;
+run policy_eg_1.cpp ;
+run policy_eg_2.cpp ;
+run policy_eg_3.cpp ;
+run policy_eg_4.cpp ;
+run policy_eg_5.cpp ;
+run statistics_functions_example1.cpp ;
+run students_t_example1.cpp ;
+run students_t_example2.cpp ;
+run students_t_example3.cpp ;
+run students_t_single_sample.cpp ;
+run students_t_two_samples.cpp ;
Modified: sandbox/math_toolkit/libs/math/example/chi_square_std_dev_test.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/example/chi_square_std_dev_test.cpp (original)
+++ sandbox/math_toolkit/libs/math/example/chi_square_std_dev_test.cpp 2007-08-03 13:03:12 EDT (Fri, 03 Aug 2007)
@@ -417,4 +417,5 @@
99.990 1095435 1117564
99.999 1440608 1469711
-*/
\ No newline at end of file
+*/
+
Modified: sandbox/math_toolkit/libs/math/example/policy_eg_2.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/example/policy_eg_2.cpp (original)
+++ sandbox/math_toolkit/libs/math/example/policy_eg_2.cpp 2007-08-03 13:03:12 EDT (Fri, 03 Aug 2007)
@@ -40,4 +40,5 @@
std::cout << "errno = " << errno << std::endl;
}
-//]
\ No newline at end of file
+//]
+
Modified: sandbox/math_toolkit/libs/math/example/policy_eg_3.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/example/policy_eg_3.cpp (original)
+++ sandbox/math_toolkit/libs/math/example/policy_eg_3.cpp 2007-08-03 13:03:12 EDT (Fri, 03 Aug 2007)
@@ -31,4 +31,5 @@
quantile(mybinom(200, 0.25), 0.05) << std::endl;
}
-//]
\ No newline at end of file
+//]
+
Modified: sandbox/math_toolkit/libs/math/example/students_t_example1.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/example/students_t_example1.cpp (original)
+++ sandbox/math_toolkit/libs/math/example/students_t_example1.cpp 2007-08-03 13:03:12 EDT (Fri, 03 Aug 2007)
@@ -83,7 +83,7 @@
// cout << "Student's t = " << t << endl;
cout.precision(5); // Useful accuracy is only a few decimal digits, but seems to give at least 5.
- cout << "Probability of Student's t is " << cdf(students_t(degrees_of_freedom), abs(t)) << endl; // 0.90657, is 1 tailed.
+ cout << "Probability of Student's t is " << cdf(students_t(degrees_of_freedom), std::abs(t)) << endl; // 0.90657, is 1 tailed.
// So there is insufficient evidence of a difference to meet a 95% (1 in 20) criterion.
return 0;
@@ -111,3 +111,4 @@
*/
+
Modified: sandbox/math_toolkit/libs/math/example/students_t_single_sample.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/example/students_t_single_sample.cpp (original)
+++ sandbox/math_toolkit/libs/math/example/students_t_single_sample.cpp 2007-08-03 13:03:12 EDT (Fri, 03 Aug 2007)
@@ -387,4 +387,5 @@
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
-*/
\ No newline at end of file
+*/
+
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