3 ms·
The Eigen Array [1] object is fairly close to this. Combining the 'select' with comparisons, chained operators etc. Eigen vectorized stuff pretty effectively to
by snovv_crash 6y ago
The Eigen Array [1] object is fairly close to this. Combining the 'select' with comparisons, chained operators etc. Eigen vectorized stuff pretty effectively too.
1. https://eigen.tuxfamily.org/dox/group__TutorialArrayClass.html https://eigen.tuxfamily.org/dox/group__TutorialArrayClass.ht...
- cozzyd 6y agoInteresting... I've used Eigen for matrix operations before, I did not know they had such a smart general-purpose array implementation!