From 12dda34b15fe2ea4d994fafdba8c4666963e1a55 Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Fri, 1 Jan 2021 20:54:45 +0100 Subject: Eliminate boolean product warnings by factoring out a `combine_scalar_factors` helper function. --- test/product_small.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'test') diff --git a/test/product_small.cpp b/test/product_small.cpp index 93876dba4..1d6df6e58 100644 --- a/test/product_small.cpp +++ b/test/product_small.cpp @@ -56,18 +56,17 @@ test_lazy_single(int rows, int cols, int depth) VERIFY_IS_APPROX(C+=A.lazyProduct(B), ref_prod(D,A,B)); } -template -void test_dynamic_exact() +void test_dynamic_bool() { int rows = internal::random(1,64); int cols = internal::random(1,64); int depth = internal::random(1,65); - typedef Matrix MatrixX; + typedef Matrix MatrixX; MatrixX A(rows,depth); A.setRandom(); MatrixX B(depth,cols); B.setRandom(); - MatrixX C(rows,cols); C.setRandom(); - MatrixX D(C); + MatrixX C(rows,cols); C.setRandom(); + MatrixX D(C); for(Index i=0;i() ); CALL_SUBTEST_6( bug_1311<5>() ); - CALL_SUBTEST_9( test_dynamic_exact() ); + CALL_SUBTEST_9( test_dynamic_bool() ); } CALL_SUBTEST_6( product_small_regressions<0>() ); -- cgit v1.2.3