Registered Member
|
I have a function taking an eigen matrix. Inside the function I want to iterate over the matrix' columns. So far I've only seen range-based iteration for flattened matrices, such as in the tutorial on STL iterators.
However, to my slight surprise, it also works when iterating over the VectorwiseOp returned by colwise():
The resulting code is, however, rather expressive. EDIT: I've been using Eigen for a while now and I just want to say how amazing it is. Thanks to ggael and everyone who is involved! |
Registered Member
|
To answer my own question: At least for the developer branch, it's even described in one of the tutorials. See here at the very bottom.
|
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]