diff options
author | Gael Guennebaud <g.gael@free.fr> | 2010-07-10 22:53:27 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2010-07-10 22:53:27 +0200 |
commit | e5bc9526f16590288edbc3e5fd8837ea81654942 (patch) | |
tree | 705dc4ffb2aa57efb053b3973ff721f5a57dc234 /test/product_large.cpp | |
parent | c4ef69b5bd46b106d001921867847a741bc6725b (diff) |
* generalize rowmajor by vector
* fix weird compilation error when constructing a matrix with a row by matrix product
Diffstat (limited to 'test/product_large.cpp')
-rw-r--r-- | test/product_large.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/product_large.cpp b/test/product_large.cpp index 2d36c5a92..2c5523913 100644 --- a/test/product_large.cpp +++ b/test/product_large.cpp @@ -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 } |