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

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen 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.

cheers,
gael

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

Hello,

 

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(:);`

 

Thanks,

Toby



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