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

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


Hi Gael,

thanks for the great work!

> for(auto x : A.rowwise()) { ... }

> On my side, I'm rather reading it as "iterate over all elements of A in row-major order",

Exactly what I was thinking and I would definitely have to consult the docs.

I guess

> for(auto x : A.allRows()) { … }

is okay but also not completely intuitive. Since something like

> for(auto x : A.rows()) { … }


would be the most intuitive, I really like Joseph's idea of using
something similar to

> for(auto x : A.irows()) { … }

Thanks,
David




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