Mx0 * 0xN (zero size) matrix products
Submitted by twa..@..il.com
Assigned to Nobody
Link to original bugzilla bug (#986)
Version: 3.2
Operating system: Mac OS
Description
Created attachment 559
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.
Attachment 559, "Code segment demonstrating problems with Mx0 * 0xN matrix products":
file_986.txt