Registered Member
|
Hi there,
I need to iterate through a 2D array, so I tried the example showed here: https://eigen.tuxfamily.org/dox-devel/g ... alSTL.html
But it doesn't compile (tried with gcc 7.4.0 and 8.3.0). I got the following error: array.cpp: In function ‘int main()’: array.cpp:9:27: error: ‘begin’ was not declared in this scope for(auto row : A.rowwise()) Any ideas how to solve this? I couldn't find anything online. Thanks, Antoine |
Registered Member
|
Figured it out!
I didn't realize that this example is only valid for Eigen 3.4 which is not available yet. I tried using the latest version on git and it worked. Antoine |
Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell