With thanks to ChriSopht_ from the #eigen
IRC channel:
VectorXd compareMat = ...;
double cutoff = 3;
Matrix<bool, Dynamic, 1> result = compareMat.array() <= cutoff;
So, the trick is using .array()
to get at coefficient-wise operators, and of course then getting the return type right…