better fix for (v * v') * v, we still have to find a way to reorder it

This commit is contained in:
Gael Guennebaud
2009-10-01 13:27:03 +02:00
parent 5409ce1625
commit 9a3cae4655
3 changed files with 7 additions and 11 deletions

View File

@@ -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);
}
}