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

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


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/