C++
Keyword auto with Eigen …
Today I encountered a weird problem when using Eigen library with keyword auto. The scenario is as follows:
Eigen::Affine3d aff;
// aff is assigned with a valid value ...
auto r = aff.rotation();
auto res = r * r;
In the end, the result variable res contains a 3x3 matrix with only zero values, no …