diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2010-02-11 11:31:36 +0100 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2010-02-11 11:31:36 +0100 |
commit | 13ce92f5ba8a17530d837c145df88837eee0076c (patch) | |
tree | f175936876a627fdaed14cd9c5fb81ee46e210bf /test/product_notemporary.cpp | |
parent | 93e86b0884fa9ad6f6fe02645ce8dc15c2a6daf9 (diff) |
Fixed notemporary unit test.
Diffstat (limited to 'test/product_notemporary.cpp')
-rw-r--r-- | test/product_notemporary.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/product_notemporary.cpp b/test/product_notemporary.cpp index 79720145e..332858851 100644 --- a/test/product_notemporary.cpp +++ b/test/product_notemporary.cpp @@ -112,9 +112,9 @@ template<typename MatrixType> void product_notemporary(const MatrixType& m) // Zero temporaries for lazy products ... VERIFY_EVALUATION_COUNT( Scalar tmp = 0; tmp += Scalar(RealScalar(1)) / (m3.transpose().lazyProduct(m3)).diagonal().sum(), 0 ); - // ... and one temporary for even deeply (>=2) nested products - VERIFY_EVALUATION_COUNT( Scalar tmp = 0; tmp += Scalar(RealScalar(1)) / (m3.transpose() * m3).diagonal().sum(), 1 ); - VERIFY_EVALUATION_COUNT( Scalar tmp = 0; tmp += Scalar(RealScalar(1)) / (m3.transpose() * m3).diagonal().array().abs().sum(), 1 ); + // ... and even no temporary for even deeply (>=2) nested products + VERIFY_EVALUATION_COUNT( Scalar tmp = 0; tmp += Scalar(RealScalar(1)) / (m3.transpose() * m3).diagonal().sum(), 0 ); + VERIFY_EVALUATION_COUNT( Scalar tmp = 0; tmp += Scalar(RealScalar(1)) / (m3.transpose() * m3).diagonal().array().abs().sum(), 0 ); // Zero temporaries for ... CoeffBasedProductMode // - does not work with GCC because of the <..>, we'ld need variadic macros ... |