Registered Member
|
Hi,
as mentioned in a previous post, I am creating an interface to include Eigen in an existing project. I created a template Matrix class:
which adds an operator % for component-wise multiplication:
At compilation, I get the following error:
Can someone help me resolve this problem ? Thank you, VK |
Moderator
|
You should rather add it as a plugin to MatrixBase (or DenseBase), and copy/paste the code of cwiseProduct to make it an alias:
For the curiosity, EIGEN_CWISE_PRODUCT_RETURN_TYPE is defined in Eigen/src/Core/util/Macros.h |
Registered Member
|
OK, I will follow your advice and try to implement what I need through the plugin system !
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]