[mlpack-git] master, mlpack-1.0.x: Fix mixup of rows and columns. (9b44fc4)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 21:44:36 EST 2015


Repository : https://github.com/mlpack/mlpack

On branches: master,mlpack-1.0.x
Link       : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40

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

commit 9b44fc4f7baad79a358d3543fbfe53ea89fdfd7e
Author: Ryan Curtin <ryan at ratml.org>
Date:   Fri Feb 21 23:11:54 2014 +0000

    Fix mixup of rows and columns.


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

9b44fc4f7baad79a358d3543fbfe53ea89fdfd7e
 src/mlpack/tests/to_string_test.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/mlpack/tests/to_string_test.cpp b/src/mlpack/tests/to_string_test.cpp
index 475c3ba..4272f65 100644
--- a/src/mlpack/tests/to_string_test.cpp
+++ b/src/mlpack/tests/to_string_test.cpp
@@ -283,13 +283,13 @@ BOOST_AUTO_TEST_CASE(CFString)
   size_t a = 1 ;
   arma::mat c(3, 3);
   c(0, 0) = 1;
-  c(0, 1) = 2;
-  c(0, 2) = 1.5;
   c(1, 0) = 2;
+  c(2, 0) = 1.5;
+  c(0, 1) = 2;
   c(1, 1) = 3;
-  c(1, 2) = 2.0;
-  c(2, 0) = 1;
-  c(2, 1) = 3;
+  c(2, 1) = 2.0;
+  c(0, 2) = 1;
+  c(1, 2) = 3;
   c(2, 2) = 0.7;
   mlpack::cf::CF d(a, a, c);
   Log::Debug << d;



More information about the mlpack-git mailing list