Created attachment 471 [details]
test code reproducing the bug
Running the attached code leads to following output, which is wrong (if i'm not completely mistaken)
Using ^T as "transposed"
out1 = (v^T*m)^T : shape: 1x1
out2 = m^T*v : shape: 1x1
out1(0,0) = 0 << should also be 4?!?!
out2(0,0) = 4
out1 == out2: true << NO!
(v.transpose()*m) is evaluated into a temporary, which gets out of scope when the surrounding ().transpose() is later accessed.
Avoid using auto with Eigen-expressions!
*** This bug has been marked as a duplicate of bug 505 ***
-- GitLab Migration Automatic Message --
This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/834.