aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/product_notemporary.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-10-09 15:28:09 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-10-09 15:28:09 +0200
commit6536b4bad71de912f240c6fffa6fd29e5b7b4bbc (patch)
tree45a897b1c521b7882f415782a8389db9ddc76d53 /test/product_notemporary.cpp
parenta4cc4c1e5e0ca1ee46818cda81793e4b5e586221 (diff)
Implement temporary-free path for "D.nolias() ?= C + A*B". (I thought it was already implemented)
Diffstat (limited to 'test/product_notemporary.cpp')
-rw-r--r--test/product_notemporary.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/product_notemporary.cpp b/test/product_notemporary.cpp
index 16f6266f7..ff93cb881 100644
--- a/test/product_notemporary.cpp
+++ b/test/product_notemporary.cpp
@@ -47,6 +47,10 @@ template<typename MatrixType> void product_notemporary(const MatrixType& m)
VERIFY_EVALUATION_COUNT( m3.noalias() = s1 * (m1 * m2.transpose()), 0);
+ VERIFY_EVALUATION_COUNT( m3.noalias() = m3 + m1 * m2.transpose(), 0);
+ VERIFY_EVALUATION_COUNT( m3.noalias() += m3 + m1 * m2.transpose(), 0);
+ VERIFY_EVALUATION_COUNT( m3.noalias() -= m3 + m1 * m2.transpose(), 0);
+
VERIFY_EVALUATION_COUNT( m3.noalias() = s1 * m1 * s2 * m2.adjoint(), 0);
VERIFY_EVALUATION_COUNT( m3.noalias() = s1 * m1 * s2 * (m1*s3+m2*s2).adjoint(), 1);
VERIFY_EVALUATION_COUNT( m3.noalias() = (s1 * m1).adjoint() * s2 * m2, 0);