(v^T*m)^T != m^T*v
Submitted by Martin Rueckl
Assigned to Nobody
Link to original bugzilla bug (#834)
Version: 3.2
Operating system: Linux
Description
Created attachment 471
test code reproducing the bug
Running the attached code leads to following output, which is wrong (if i'm not completely mistaken)
vector v:2x1:
1
1
matrix m:2x1:
2
2
Using ^T as "transposed"
out1 = (v^Tm)^T : shape: 1x1
out2 = m^Tv : shape: 1x1
out1(0,0) = 0 << should also be 4?!?!
out2(0,0) = 4
out1 == out2: true << NO!
Attachment 471, "test code reproducing the bug":
eigen3-test.cpp