Hi,
I'm trying to upgrade to Eigen 3.3.1 and ran into a problem. The following code produces an all-0 matrix with the "#if 1" and produces the identity matrix if changed to "#if 0". I'm using gcc 4.8.5 and compiling as "g++ -O -I eigen-eigen-f562a193118d/Eigen test.cpp"
MatrixXd mP = MatrixXd::Identity(3,3) ;
MatrixXd mPHI = MatrixXd::Identity(3,3) ;
mP.triangularView<Upper>() = mPHI *
mP.selfadjointView<Upper>() *
mP.selfadjointView<Upper>() *
An older version of Eigen from 2014 produces the identity matrix either way. Any ideas?
Thanks,
Will