diff options
author | Gael Guennebaud <g.gael@free.fr> | 2020-05-30 23:14:29 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2020-05-30 23:15:12 +0200 |
commit | ab615e4114aafebcf44268aae93b97858f549a11 (patch) | |
tree | d032bd07671092a827e6ec101bee5042d21ec4d7 /test/sparse_product.cpp | |
parent | 95177362edc9c814a102c8a2236695c632892232 (diff) |
Save one extra temporary when assigning a sparse product to a row-major sparse matrix
Diffstat (limited to 'test/sparse_product.cpp')
-rw-r--r-- | test/sparse_product.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<typename SparseMatrixType> 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); } |