[mlpack-svn] r13875 - mlpack/trunk/src/mlpack/tests

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Thu Nov 15 22:10:49 EST 2012


Author: rcurtin
Date: 2012-11-15 22:10:49 -0500 (Thu, 15 Nov 2012)
New Revision: 13875

Modified:
   mlpack/trunk/src/mlpack/tests/sgd_test.cpp
Log:
Use specific doubles for RHEL5 Boost compatibility.


Modified: mlpack/trunk/src/mlpack/tests/sgd_test.cpp
===================================================================
--- mlpack/trunk/src/mlpack/tests/sgd_test.cpp	2012-11-16 03:10:00 UTC (rev 13874)
+++ mlpack/trunk/src/mlpack/tests/sgd_test.cpp	2012-11-16 03:10:49 UTC (rev 13875)
@@ -49,7 +49,7 @@
 
     BOOST_REQUIRE_SMALL(result, 1e-10);
     for (size_t j = 0; j < i; ++j)
-      BOOST_REQUIRE_CLOSE(coordinates[j], 1, 1e-3);
+      BOOST_REQUIRE_CLOSE(coordinates[j], 1.0, 1e-3);
   }
 }
 




More information about the mlpack-svn mailing list