fix bad Map in row-vector by matrix products

This commit is contained in:
Gael Guennebaud
2010-07-09 20:27:05 +02:00
parent 81f36b0e21
commit 468863f3a0
2 changed files with 10 additions and 3 deletions

View File

@@ -48,4 +48,11 @@ void test_product_large()
MatrixXf a = MatrixXf::Random(10,4), b = MatrixXf::Random(4,10), c = a;
VERIFY_IS_APPROX((a = a * b), (c * b).eval());
}
{
MatrixXf mat1(10,10); mat1.setRandom();
MatrixXf mat2(32,10); mat2.setRandom();
MatrixXf result = mat1.row(2)*mat2.transpose();
VERIFY_IS_APPROX(result, (mat1.row(2)*mat2.transpose()).eval());
}
}