Registered Member
|
The following code will not compile with the error below.
Note: I am using Eigen 5b4cfce09c6f from Hg, and using VS2010. Edit: If it matters I have set #define EIGEN_DEFAULT_TO_ROW_MAJOR Suggestions? |
Moderator
|
See the documentation:
http://eigen.tuxfamily.org/dox/classEig ... d052a2e438 This is only for fixed-size square matrices of size up to 4x4. So use Matrix4d. If your matrices are larger use a PartialPivLU<MatrixXd> lu(jacobian); and lu.info()==Success to check, and X=lu.solve(B) to apply jacobian^-1. It's usually not recommended to compute the inverse explicitly. |
Registered Member
|
@ggael
That explains everything. I am going to take your advice and re-factor the code to use the PartialPivLU. Thanks. |
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]