Bugzilla – Bug 986
Mx0 * 0xN (zero size) matrix products
Last modified: 2015-04-01 17:27:56 UTC
Created attachment 559 [details]
Code segment demonstrating problems with Mx0 * 0xN matrix products
Reading through the changelog, I was excited to see the line 'Enable Mx0 * 0xN matrix products' in version 3.2.3. I think there are still some issues however.
See the attached file. The output on my machine (compiled using clang) is:
Eigen version: 3.2.4
For x, y, and z I would expect a 6x1 matrix of zeros. However evaluating x = A * b results in a segfault and evaluating y = A * c results in an assertion error:
Assertion failed: (lhs.cols()>0 && "you are using a non initialized matrix"), function run, file /usr/local/include/eigen3/Eigen/src/Core/products/CoeffBasedProduct.h, line 428.
Confirmed, expect that with the latest 3.2 and devel branches you do not get segfaults but either assertions or compilation failures. This is thus more a feature request.
3.2 : https://bitbucket.org/eigen/eigen/commits/eac2061f58b1/
Wow, that's great. Thanks for the quick response!