[mlpack-git] master: Fix type in test because LMetric supports arbitrary types now. (e8e2ff1)

gitdub at mlpack.org gitdub at mlpack.org
Wed Jun 8 14:39:11 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/8551a21f9821399ded164d8dbb11e453bcb33c45...e8e2ff17da5978cacf3c9a45d4aa572a4bf008e5

>---------------------------------------------------------------

commit e8e2ff17da5978cacf3c9a45d4aa572a4bf008e5
Author: Ryan Curtin <ryan at ratml.org>
Date:   Wed Jun 8 18:39:11 2016 +0000

    Fix type in test because LMetric supports arbitrary types now.


>---------------------------------------------------------------

e8e2ff17da5978cacf3c9a45d4aa572a4bf008e5
 src/mlpack/tests/metric_test.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mlpack/tests/metric_test.cpp b/src/mlpack/tests/metric_test.cpp
index 6430d03..7eff0bb 100644
--- a/src/mlpack/tests/metric_test.cpp
+++ b/src/mlpack/tests/metric_test.cpp
@@ -44,10 +44,10 @@ BOOST_AUTO_TEST_CASE(L2MetricTest)
   arma::vec b1(5);
   b1.randn();
 
-  arma::Col<size_t> a2(5);
+  arma::vec a2(5);
   a2 << 1 << 2 << 1 << 0 << 5;
 
-  arma::Col<size_t> b2(5);
+  arma::vec b2(5);
   b2 << 2 << 5 << 2 << 0 << 1;
 
   EuclideanDistance lMetric;




More information about the mlpack-git mailing list