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

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Thu Jun 20 17:16:28 EDT 2013


Author: marcus
Date: 2013-06-20 17:16:28 -0400 (Thu, 20 Jun 2013)
New Revision: 15273

Modified:
   mlpack/trunk/src/mlpack/tests/pca_test.cpp
Log:
Fix ambiguous math reference error, to pass the test on OS X with clang.

Modified: mlpack/trunk/src/mlpack/tests/pca_test.cpp
===================================================================
--- mlpack/trunk/src/mlpack/tests/pca_test.cpp	2013-06-20 20:37:54 UTC (rev 15272)
+++ mlpack/trunk/src/mlpack/tests/pca_test.cpp	2013-06-20 21:16:28 UTC (rev 15273)
@@ -15,6 +15,7 @@
 using namespace std;
 using namespace arma;
 using namespace mlpack;
+using namespace mlpack::math;
 using namespace mlpack::pca;
 using namespace mlpack::distribution;
 
@@ -80,7 +81,7 @@
  */
 BOOST_AUTO_TEST_CASE(PCAScalingTest)
 {
-  math::RandomSeed(std::time(NULL));
+  RandomSeed(std::time(NULL));
 
   // Generate an artificial dataset in 3 dimensions.
   arma::mat data(3, 5000);




More information about the mlpack-svn mailing list