aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/product_small.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-10-01 13:27:03 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-10-01 13:27:03 +0200
commit9a3cae465510fad8f671724d71ef59a4a8199125 (patch)
treeff61d999ae7934a0d3d1cbc6c3012df31958a6ea /test/product_small.cpp
parent5409ce1625431f9f8149e66028db17e8515ab166 (diff)
better fix for (v * v') * v, we still have to find a way to reorder it
Diffstat (limited to 'test/product_small.cpp')
-rw-r--r--test/product_small.cpp6
1 files changed, 6 insertions, 0 deletions
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);
+ }
}