diff options
author | Gael Guennebaud <g.gael@free.fr> | 2017-06-08 12:55:25 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2017-06-08 12:55:25 +0200 |
commit | 4bbc32046810f65bb0f77f6dbe538abad51de281 (patch) | |
tree | 237c9dee16d2d3b9f03c82a51237396e5b15c62b /test/product_notemporary.cpp | |
parent | 2971503fed85add086cb163d24ee5d402d631aab (diff) |
bug #1435: fix aliasing issue in exressions like: A = C - B*A;
Diffstat (limited to 'test/product_notemporary.cpp')
-rw-r--r-- | test/product_notemporary.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/product_notemporary.cpp b/test/product_notemporary.cpp index 8bf71b4f2..30592b79e 100644 --- a/test/product_notemporary.cpp +++ b/test/product_notemporary.cpp @@ -51,6 +51,7 @@ template<typename MatrixType> void product_notemporary(const MatrixType& m) VERIFY_EVALUATION_COUNT( m3.noalias() = s1 * (m1 * m2.transpose()), 0); VERIFY_EVALUATION_COUNT( m3 = m3 + (m1 * m2.adjoint()), 1); + VERIFY_EVALUATION_COUNT( m3 = m3 - (m1 * m2.adjoint()), 1); VERIFY_EVALUATION_COUNT( m3 = m3 + (m1 * m2.adjoint()).transpose(), 1); VERIFY_EVALUATION_COUNT( m3.noalias() = m3 + m1 * m2.transpose(), 0); |