aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/product_notemporary.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2014-02-18 17:43:16 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2014-02-18 17:43:16 +0100
commit5b78780deffd4a5728cfc6ae5371f56e038e2ac0 (patch)
tree8a09f0007ed1a65a0ecd170e575aa3500c918f1b /test/product_notemporary.cpp
parent8169c6ac59ce78a7340ebae40f8eabe9df1c8f62 (diff)
Add evaluator shortcut for triangular ?= product
Diffstat (limited to 'test/product_notemporary.cpp')
-rw-r--r--test/product_notemporary.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/product_notemporary.cpp b/test/product_notemporary.cpp
index 258d238e2..deb494c96 100644
--- a/test/product_notemporary.cpp
+++ b/test/product_notemporary.cpp
@@ -114,8 +114,7 @@ template<typename MatrixType> void product_notemporary(const MatrixType& m)
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 ...
- //VERIFY_EVALUATION_COUNT( m3.col(0).head<5>() * m3.col(0).transpose() + m3.col(0).head<5>() * m3.col(0).transpose(), 0 );
+ VERIFY_EVALUATION_COUNT( m3.col(0).template head<5>() * m3.col(0).transpose() + m3.col(0).template head<5>() * m3.col(0).transpose(), 0 );
// Check matrix * vectors
VERIFY_EVALUATION_COUNT( cvres.noalias() = m1 * cv1, 0 );