I'm using Eigen lib, version 3.2.7 on Windows machine.
I got weird results when I ran the following code:
auto a = Eigen::Array4i{ 95,95,95,95 }-Eigen::Array4i{ 0,1,0,1 };
Eigen::Array4i b = Eigen::Array4i{ 95,95,95,95 }-Eigen::Array4i{ 0,1,0,1 };
std::cout << a;
std::cout << b;
instead of printing the same vector twice, I got the following result:
[0; 0; 0; 0][95; 94; 95; 94]
Interestingly, this issue appears on Release mode only. The output for the Debug mode case is correct.
Does anyone have an explanation for this?
Thanks!