There was a whole bunch of repeated code in the ArrayCwiseUnaryOps.h file to define the various unary operations.
I created a macro EIGEN_MAKE_CWISE_UNARY_OP in Macros.h which operates similarly to EIGEN_MAKE_CWISE_BINARY_OP, and then used it.
Created attachment 244 [details]
cleanup code in ArrayCwiseUnaryOps.h
There is a lot of boiler plate code in the entire plugins-directory, especially for BlockMethods.h.
We could also auto-generate most typedefs and the doxygen documentation (Bug 833).
Related is bug 728, but I think there is no additional #include level needed in this case.