From 9a3cae465510fad8f671724d71ef59a4a8199125 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 1 Oct 2009 13:27:03 +0200 Subject: better fix for (v * v') * v, we still have to find a way to reorder it --- test/product_small.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/product_small.cpp') diff --git a/test/product_small.cpp b/test/product_small.cpp index 3aed5cf1b..182af71db 100644 --- a/test/product_small.cpp +++ b/test/product_small.cpp @@ -34,4 +34,10 @@ void test_product_small() CALL_SUBTEST( product(Matrix4d()) ); CALL_SUBTEST( product(Matrix4f()) ); } + + { + // test compilation of (outer_product) * vector + Vector3f v = Vector3f::Random(); + VERIFY_IS_APPROX( (v * v.transpose()) * v, (v * v.transpose()).eval() * v); + } } -- cgit v1.2.3