Registered Member
|
Dear All,
I'm very new in Eigen. I installed Eigen 2 (i have problems with Eigen 3). What i need is to invert matrix of different sizes (NxN, where N between 5 and 100). For small size N < 5, it is very easy to use Matrix.inverse as follows:
When N is more than 4, i get a lot of errors! I think that i need some decomposition technique. However, i'm not finding any documentation for Eigen 2, and i don't now how to do. PS: For Eigen 3, only matrix initialization works for me. Any arithmetic operation generates an infinite number of errors. Any help please? |
Moderator
|
You need to #include <Eigen/LU> for matrix inversion. Eigen3 should work, if not please copy-paste the first errors to get help !
|
Registered Member
|
Sorry, i did not mention the whole code. So i put already the Eigen/LU as you can see bellow:
I get the following errors:
Too much errors and i cannot understand what is that! For Eigen 3, i will put it in an other issue. |
Registered Member
|
I tried to execute my program by CMD command on windows and it runs perfectly. My command was
Is it a problem of compiling from eclipse? On eclipse i included the path as follows: project -- properties -- settings -- GCC C++ complier -- Includes and i added the path: C:/Hazem/eigen2/ Is there anything else? |
Moderator
|
Yes this seems to be problem on your settings in eclipse. Look at the generated compilation command to see what could be wrong. And also, please move to Eigen 3.3.4!
|
Moderator
|
btw, your matrix is singular and not invertible.
|
Registered Member
|
Thank you for your advice. I moved to Eigen 3.4. I have eclipse Helios, and i'm not finding what i have to do. In the documentation they say as follows: http://eigen.tuxfamily.org/index.php?title=IDEs
However, i cannot find the path: Preferences > C/C++ > Coding Style > Organize Includes > Header Substitution. |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]