Registered Member
|
I am trying to use boost units as scalar types of eigen3 vectors / arrays (the version of eigen I'm currently using is 3.3.4).
For simplicity, I will use a dummy `my_type` from now on, but the logic is the same. Following and putting together the indication found in this eigen3 documentation page, and in this answer, I managed to adapt scalar operations (see the sample code below, where I put the product as an example) mixing `my_type` and `Eigen::Matrix/Array`. Now I am trying to extend it to matrix operation (row-to-column product, coefficient-wise product, etc.), but I'm getting several compilation errors. Compiling the following sample code:
with `clang++` v. 6.0.0, I get the following errors (I had to cut them due to the maximum characters number): **Error 1**
**Error 2**
I found this link that might explain the reason of Error 2, but still I do not understand how to fix or workaround it. I simplified the question using a dummy type as `Scalar`, reproducing the same errors I had with `boost::units`' types. Can someone give me a hint on how to fix these issues? Thank you in advance. |
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]