New user self-registration is disabled due to spam. Please email eigen-core-team @ lists.tuxfamily.org if you need an account.
Before reporting a bug, please make sure that your Eigen version is up-to-date!
Bug 402 - cleanup boiler-plate code in plugins directory
Summary: cleanup boiler-plate code in plugins directory
Status: CONFIRMED
Alias: None
Product: Eigen
Classification: Unclassified
Component: Core - general (show other bugs)
Version: unspecified
Hardware: All All
: Low Internal Design
Assignee: Nobody
URL:
Whiteboard:
Keywords:
Depends on: 833
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-06 16:51 UTC by abachrach
Modified: 2014-12-01 15:41 UTC (History)
4 users (show)



Attachments
cleanup code in ArrayCwiseUnaryOps.h (6.53 KB, patch)
2012-01-06 16:53 UTC, abachrach
no flags Details | Diff

Description abachrach 2012-01-06 16:51:34 UTC
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.
Comment 1 abachrach 2012-01-06 16:53:09 UTC
Created attachment 244 [details]
cleanup code in ArrayCwiseUnaryOps.h
Comment 2 Christoph Hertzberg 2014-12-01 15:41:48 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.