From ff661a7b6f0c16a079cfb5cb2c3b371e2bf6e42a Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 10 Apr 2013 23:13:04 +0200 Subject: Add temporary check for triangularView += product --- test/product_notemporary.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/product_notemporary.cpp') diff --git a/test/product_notemporary.cpp b/test/product_notemporary.cpp index cf9dbdd03..a30a8b4c7 100644 --- a/test/product_notemporary.cpp +++ b/test/product_notemporary.cpp @@ -77,6 +77,9 @@ template void product_notemporary(const MatrixType& m) VERIFY_EVALUATION_COUNT( m3.noalias() -= (s1 * m1).template triangularView() * m2, 0); VERIFY_EVALUATION_COUNT( rm3.noalias() = (s1 * m1.adjoint()).template triangularView() * (m2+m2), 1); VERIFY_EVALUATION_COUNT( rm3.noalias() = (s1 * m1.adjoint()).template triangularView() * m2.adjoint(), 0); + + VERIFY_EVALUATION_COUNT( m3.template triangularView() = (m1 * m2.adjoint()), 0); + VERIFY_EVALUATION_COUNT( m3.template triangularView() -= (m1 * m2.adjoint()), 0); // NOTE this is because the blas_traits require innerstride==1 to avoid a temporary, but that doesn't seem to be actually needed for the triangular products VERIFY_EVALUATION_COUNT( rm3.col(c0).noalias() = (s1 * m1.adjoint()).template triangularView() * (s2*m2.row(c0)).adjoint(), 1); -- cgit v1.2.3