[mlpack] 83/324: Fix ambiguous math reference error, to pass the test clang.

Barak A. Pearlmutter barak+git at cs.nuim.ie
Sun Aug 17 08:21:58 UTC 2014


This is an automated email from the git hooks/post-receive script.

bap pushed a commit to branch svn-trunk
in repository mlpack.

commit b4ce20ed48eb600b9c4ea70e2d796abfc04edcd0
Author: marcus <marcus at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date:   Thu Jun 26 14:33:53 2014 +0000

    Fix ambiguous math reference error, to pass the test clang.
    
    git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@16721 9d5b8971-822b-0410-80eb-d18c1038ef23
---
 src/mlpack/tests/nmf_test.cpp | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/mlpack/tests/nmf_test.cpp b/src/mlpack/tests/nmf_test.cpp
index 59aaa41..1f36bdf 100644
--- a/src/mlpack/tests/nmf_test.cpp
+++ b/src/mlpack/tests/nmf_test.cpp
@@ -27,7 +27,7 @@ using namespace mlpack::amf;
  */
 BOOST_AUTO_TEST_CASE(NMFDefaultTest)
 {
-  math::RandomSeed(std::time(NULL));
+  mlpack::math::RandomSeed(std::time(NULL));
   mat w = randu<mat>(20, 12);
   mat h = randu<mat>(12, 20);
   mat v = w * h;
@@ -49,7 +49,7 @@ BOOST_AUTO_TEST_CASE(NMFDefaultTest)
  */
 BOOST_AUTO_TEST_CASE(NMFAcolDistTest)
 {
-  math::RandomSeed(std::time(NULL));
+  mlpack::math::RandomSeed(std::time(NULL));
   mat w = randu<mat>(20, 12);
   mat h = randu<mat>(12, 20);
   mat v = w * h;
@@ -72,7 +72,7 @@ BOOST_AUTO_TEST_CASE(NMFAcolDistTest)
  */
 BOOST_AUTO_TEST_CASE(NMFRandomDivTest)
 {
-  math::RandomSeed(std::time(NULL));
+  mlpack::math::RandomSeed(std::time(NULL));
   mat w = randu<mat>(20, 12);
   mat h = randu<mat>(12, 20);
   mat v = w * h;
@@ -95,7 +95,7 @@ BOOST_AUTO_TEST_CASE(NMFRandomDivTest)
  */
 BOOST_AUTO_TEST_CASE(NMFALSTest)
 {
-  math::RandomSeed(std::time(NULL));
+  mlpack::math::RandomSeed(std::time(NULL));
   mat w = randu<mat>(20, 12);
   mat h = randu<mat>(12, 20);
   mat v = w * h;
@@ -131,7 +131,7 @@ BOOST_AUTO_TEST_CASE(SparseNMFAcolDistTest)
 
   while (sparseResidue != sparseResidue && denseResidue != denseResidue)
   {
-    math::RandomSeed(std::time(NULL));
+    mlpack::math::RandomSeed(std::time(NULL));
     mat w, h;
     sp_mat v;
     v.sprandu(20, 20, 0.3);
@@ -180,7 +180,7 @@ BOOST_AUTO_TEST_CASE(SparseNMFALSTest)
 
   while (sparseResidue != sparseResidue && denseResidue != denseResidue)
   {
-    math::RandomSeed(std::time(NULL));
+    mlpack::math::RandomSeed(std::time(NULL));
     mat w, h;
     sp_mat v;
     v.sprandu(10, 10, 0.3);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git



More information about the debian-science-commits mailing list