[eigen]

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Hello,

 

I’ve met a problem with development branch. Here you are the case.

                                   { -2.0                                     -1.0 }

I have a 2x2 matrix S = {                                                   }

                                   { 0.00026130287408377900     -2.0 }

 

and I want to inverse it. This is the code I compiled with MSVS 2008

 

#include <Eigen\Core>

#include <Eigen\LU>

 

Eigen::Matrix<double, 2, 2> S;

S << -2.0 , -1.0 , 0.00026130287408377900 , -2.0;

S = S.inverse();

 

Eigen2 gives the right answer

 

                   {-0.499967339

           0.24998367}

S.inverse  =  {

 

                   {-6.53215E-05

          -0.499967339}

 

 

Eigen3 (development branch I got on 26.05) gives a wrong answer

 

 

                   {-0.499967339

           0.24998367}

S.inverse  =  {

 

                   {-6.53215E-05

          -0.124983670170524}

 

 

What’s wrong?

 

Thank you,

 

Oleg Shirokobrod

 



___________________________________________________________________________
This e-mail is confidential and is for the addressee only.   Please refer to
www.oxinst.com/email-statement for regulatory information.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/