From ab615e4114aafebcf44268aae93b97858f549a11 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sat, 30 May 2020 23:14:29 +0200 Subject: Save one extra temporary when assigning a sparse product to a row-major sparse matrix --- test/sparse_product.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/sparse_product.cpp') diff --git a/test/sparse_product.cpp b/test/sparse_product.cpp index db1b0e833..c8caebef7 100644 --- a/test/sparse_product.cpp +++ b/test/sparse_product.cpp @@ -103,7 +103,7 @@ template void sparse_product() // make sure the right product implementation is called: if((!SparseMatrixType::IsRowMajor) && m2.rows()<=m3.cols()) { - VERIFY_EVALUATION_COUNT(m4 = m2*m3, 3); // 1 temp for the result + 2 for transposing and get a sorted result. + VERIFY_EVALUATION_COUNT(m4 = m2*m3, 2); // 2 for transposing and get a sorted result. VERIFY_EVALUATION_COUNT(m4 = (m2*m3).pruned(0), 1); VERIFY_EVALUATION_COUNT(m4 = (m2*m3).eval().pruned(0), 4); } -- cgit v1.2.3