Re: [eigen] On the implementation of STL iterator for Eigen::Matrix

[ Thread Index | Date Index | More Archives ]

For those who cares, here is the end of the story: I ended up with re-using the rowwise()/colwise() pair and the PR is merged.


On Fri, Oct 5, 2018 at 6:52 PM Wood, Tobias <tobias.wood@xxxxxxxxx> wrote:



I find `for (auto x: a.rowwise()) {}` immediately intuitive, far more than any of the other suggestions. Maybe that’s because I already do a lot of rowwise()/colwise() operations?


I also find `for (auto x: A.reshape()) {}` intuitive, because I’ve written the equivalent in Matlab countless times `for x = A(:);`




Mail converted by MHonArc 2.6.19+