mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
* generalize rowmajor by vector
* fix weird compilation error when constructing a matrix with a row by matrix product
This commit is contained in:
@@ -64,5 +64,16 @@ void test_product_large()
|
||||
// only makes sure it compiles fine
|
||||
computeProductBlockingSizes<float,float>(k1,m1,n1);
|
||||
}
|
||||
|
||||
{
|
||||
// test regression in row-vector by matrix (bad Map type)
|
||||
MatrixXf mat1(10,32); mat1.setRandom();
|
||||
MatrixXf mat2(32,32); mat2.setRandom();
|
||||
MatrixXf r1 = mat1.row(2)*mat2.transpose();
|
||||
VERIFY_IS_APPROX(r1, (mat1.row(2)*mat2.transpose()).eval());
|
||||
|
||||
MatrixXf r2 = mat1.row(2)*mat2;
|
||||
VERIFY_IS_APPROX(r2, (mat1.row(2)*mat2).eval());
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user