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

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Sat Jun 8 13:59:39 EDT 2013


Author: marcus
Date: 2013-06-08 13:59:38 -0400 (Sat, 08 Jun 2013)
New Revision: 15217

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

Modified: mlpack/trunk/src/mlpack/tests/kernel_pca_test.cpp
===================================================================
--- mlpack/trunk/src/mlpack/tests/kernel_pca_test.cpp	2013-06-08 08:06:01 UTC (rev 15216)
+++ mlpack/trunk/src/mlpack/tests/kernel_pca_test.cpp	2013-06-08 17:59:38 UTC (rev 15217)
@@ -15,6 +15,7 @@
 BOOST_AUTO_TEST_SUITE(KernelPCATest);
 
 using namespace mlpack;
+using namespace mlpack::math;
 using namespace mlpack::kpca;
 using namespace mlpack::kernel;
 using namespace std;
@@ -64,10 +65,10 @@
 
   // Get the ranges of each "class".  These are all initialized as empty ranges
   // containing no points.
-  math::Range ranges[3];
-  ranges[0] = math::Range();
-  ranges[1] = math::Range();
-  ranges[2] = math::Range();
+  Range ranges[3];
+  ranges[0] = Range();
+  ranges[1] = Range();
+  ranges[2] = Range();
 
   // Expand the ranges to hold all of the points in the class.
   for (size_t i = 0; i < 250; ++i)




More information about the mlpack-svn mailing list