Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64302 - sandbox/SOC/2010/quasi_random/libs/random/test
From: jvd_at_[hidden]
Date: 2010-07-23 09:47:08


Author: qrng
Date: 2010-07-23 09:47:07 EDT (Fri, 23 Jul 2010)
New Revision: 64302
URL: http://svn.boost.org/trac/boost/changeset/64302

Log:
Marked etalon arrays as static const, which better reflects their nature.

Text files modified:
   sandbox/SOC/2010/quasi_random/libs/random/test/faure_validate.cpp | 6 +++---
   sandbox/SOC/2010/quasi_random/libs/random/test/niederreiter_base2_validade.cpp | 6 +++---
   sandbox/SOC/2010/quasi_random/libs/random/test/sobol_validate.cpp | 6 +++---
   3 files changed, 9 insertions(+), 9 deletions(-)

Modified: sandbox/SOC/2010/quasi_random/libs/random/test/faure_validate.cpp
==============================================================================
--- sandbox/SOC/2010/quasi_random/libs/random/test/faure_validate.cpp (original)
+++ sandbox/SOC/2010/quasi_random/libs/random/test/faure_validate.cpp 2010-07-23 09:47:07 EDT (Fri, 23 Jul 2010)
@@ -26,7 +26,7 @@
 // N: 100
 // Base: 2
 // Vectors skipped: 15
-double faure_02_100[100][2] =
+static const double faure_02_100[100][2] =
 {
   { 0.9375000000, 0.0625000000 },
   { 0.0312500000, 0.5312500000 },
@@ -134,7 +134,7 @@
 // N: 100
 // Base: 7
 // Vectors skipped: 2400
-double faure_07_100[100][7] =
+static const double faure_07_100[100][7] =
 {
   { 0.9995835069, 0.4602249063, 0.9412744690, 0.3202832153, 0.9850062474, 0.8334027489, 0.1103706789 },
   { 0.0000594990, 0.2437079788, 0.3765692866, 0.6493722854, 0.6685309692, 0.3582435890, 0.2228833224 },
@@ -243,7 +243,7 @@
 // N: 100
 // Base: 17
 // Vectors skipped: 83520
-double faure_16_100[100][16] =
+static const double faure_16_100[100][16] =
 {
   { 0.9999880270, 0.8056057758, 0.1198740437, 0.6486751835, 0.0390680188, 0.8792878438, 0.8198536895, 0.5009039643, 0.6317812287, 0.8007207768, 0.6547814322, 0.8998455478, 0.1276086254, 0.0370326026, 0.2198129812, 0.3230085847 },
   { 0.0000007043, 0.0739342061, 0.9946008647, 0.7862221336, 0.0647149678, 0.7918135418, 0.2862640393, 0.2779667248, 0.9710738476, 0.9743784057, 0.2536854063, 0.2482376746, 0.8023258680, 0.1164384864, 0.8034393604, 0.9496301388 },

Modified: sandbox/SOC/2010/quasi_random/libs/random/test/niederreiter_base2_validade.cpp
==============================================================================
--- sandbox/SOC/2010/quasi_random/libs/random/test/niederreiter_base2_validade.cpp (original)
+++ sandbox/SOC/2010/quasi_random/libs/random/test/niederreiter_base2_validade.cpp 2010-07-23 09:47:07 EDT (Fri, 23 Jul 2010)
@@ -27,7 +27,7 @@
 // Spatial dimension: 2
 // N: 100
 // Vectors skipped: 4096
-double niederreiter_base2_02_100[100][2] =
+static const double niederreiter_base2_02_100[100][2] =
 {
   { 0.0003662109, 0.4705810548 },
   { 0.5003662111, 0.9705810549 },
@@ -134,7 +134,7 @@
 // Spatial dimension: 7
 // N: 100
 // Vectors skipped: 4096
-double niederreiter_base2_07_100[100][7] =
+static const double niederreiter_base2_07_100[100][7] =
 {
   { 0.0003662109, 0.4705810548, 0.6358642580, 0.9561767580, 0.6715087892, 0.9793701174, 0.6053466798 },
   { 0.5003662111, 0.9705810549, 0.3858642579, 0.0811767578, 0.2965087891, 0.0418701172, 0.4178466798 },
@@ -242,7 +242,7 @@
 // Spatial dimension: 16
 // N: 100
 // Vectors skipped: 4096
-double niederreiter_base2_16_100[100][16] =
+static const double niederreiter_base2_16_100[100][16] =
 {
   { 0.0003662109, 0.4705810548, 0.6358642580, 0.9561767580, 0.6715087892, 0.9793701174, 0.6053466798, 0.1983642579, 0.2217731476, 0.3769855500, 0.5390644075, 0.4707050325, 0.2744159699, 0.9942340853, 0.5396728517, 0.0626220703 },
   { 0.5003662111, 0.9705810549, 0.3858642579, 0.0811767578, 0.2965087891, 0.0418701172, 0.4178466798, 0.7608642580, 0.7530231478, 0.5957355501, 0.4453144075, 0.5019550325, 0.7431659700, 0.0254840851, 0.4615478517, 0.9219970705 },

Modified: sandbox/SOC/2010/quasi_random/libs/random/test/sobol_validate.cpp
==============================================================================
--- sandbox/SOC/2010/quasi_random/libs/random/test/sobol_validate.cpp (original)
+++ sandbox/SOC/2010/quasi_random/libs/random/test/sobol_validate.cpp 2010-07-23 09:47:07 EDT (Fri, 23 Jul 2010)
@@ -28,7 +28,7 @@
 // Spatial dimension: 2
 // N: 100
 // Vectors skipped: 0
-double sobol_02_100[100][2] =
+static const double sobol_02_100[100][2] =
 {
   { 0.0000000000, 0.0000000000 },
   { 0.5000000002, 0.5000000002 },
@@ -135,7 +135,7 @@
 // Spatial dimension: 7
 // N: 100
 // Vectors skipped: 128
-double sobol_07_100[100][7] =
+static const double sobol_07_100[100][7] =
 {
   { 0.0117187500, 0.3320312502, 0.7851562504, 0.9414062504, 0.4648437502, 0.4179687502, 0.4648437502 },
   { 0.5117187502, 0.8320312504, 0.2851562501, 0.4414062502, 0.9648437504, 0.9179687504, 0.9648437504 },
@@ -242,7 +242,7 @@
 // Spatial dimension: 16
 // N: 100
 // Vectors skipped: 128
-double sobol_16_100[100][16] =
+static const double sobol_16_100[100][16] =
 {
   { 0.0117187500, 0.3320312502, 0.7851562504, 0.9414062504, 0.4648437502, 0.4179687502, 0.4648437502, 0.4882812502, 0.7304687503, 0.5742187503, 0.5664062503, 0.2460937501, 0.4882812502, 0.6367187503, 0.7617187504, 0.1835937501 },
   { 0.5117187502, 0.8320312504, 0.2851562501, 0.4414062502, 0.9648437504, 0.9179687504, 0.9648437504, 0.9882812505, 0.2304687501, 0.0742187500, 0.0664062500, 0.7460937503, 0.9882812505, 0.1367187501, 0.2617187501, 0.6835937503 },


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