From 106a0c1befc9cf4a54a83a45668097fc01056780 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 22 May 2008 12:35:09 +0000 Subject: [PATCH] restored the product test --- test/product.cpp | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/test/product.cpp b/test/product.cpp index bac2a897e..70b41212a 100644 --- a/test/product.cpp +++ b/test/product.cpp @@ -91,21 +91,19 @@ template void product(const MatrixType& m) void test_product() { -// for(int i = 0; i < g_repeat; i++) { -// CALL_SUBTEST( product(Matrix()) ); -// CALL_SUBTEST( product(Matrix()) ); -// CALL_SUBTEST( product(Matrix()) ); -// CALL_SUBTEST( product(Matrix4d()) ); -// } + for(int i = 0; i < g_repeat; i++) { + CALL_SUBTEST( product(Matrix()) ); + CALL_SUBTEST( product(Matrix()) ); + CALL_SUBTEST( product(Matrix()) ); + CALL_SUBTEST( product(Matrix4d()) ); + } for(int i = 0; i < g_repeat; i++) { int rows = ei_random(1,320); int cols = ei_random(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)) ); } }