[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/eigen2/test
From:       Gael Guennebaud <g.gael () free ! fr>
Date:       2008-05-22 12:35:11
Message-ID: 1211459711.202024.23025.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 811147 by ggael:

restored the product test

 M  +9 -11     product.cpp  


--- branches/work/eigen2/test/product.cpp #811146:811147
@@ -91,21 +91,19 @@
 
 void test_product()
 {
-//   for(int i = 0; i < g_repeat; i++) {
-//     CALL_SUBTEST( product(Matrix<float, 1, 1>()) );
-//     CALL_SUBTEST( product(Matrix<float, 3, 3>()) );
-//     CALL_SUBTEST( product(Matrix<float, 4, 2>()) );
-//     CALL_SUBTEST( product(Matrix4d()) );
-//   }
   for(int i = 0; i < g_repeat; i++) {
+    CALL_SUBTEST( product(Matrix<float, 1, 1>()) );
+    CALL_SUBTEST( product(Matrix<float, 3, 3>()) );
+    CALL_SUBTEST( product(Matrix<float, 4, 2>()) );
+    CALL_SUBTEST( product(Matrix4d()) );
+  }
+  for(int i = 0; i < g_repeat; i++) {
     int rows = ei_random<int>(1,320);
     int cols = ei_random<int>(1,320);
-    std::cout << "test MatrixXf " << rows << "x" << cols << "\n";
     CALL_SUBTEST( product(MatrixXf(rows, cols)) );
-    std::cout << "test MatrixXd " << rows << "x" << cols << "\n";
     CALL_SUBTEST( product(MatrixXd(rows, cols)) );
-//     CALL_SUBTEST( product(MatrixXi(rows, cols)) );
-//     CALL_SUBTEST( product(MatrixXcf(rows, cols)) );
-//     CALL_SUBTEST( product(MatrixXcd(rows, cols)) );
+    CALL_SUBTEST( product(MatrixXi(rows, cols)) );
+    CALL_SUBTEST( product(MatrixXcf(rows, cols)) );
+    CALL_SUBTEST( product(MatrixXcd(rows, cols)) );
   }
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic