Registered Member
|
Hi,
this problem is most probably not directly related to Eigen. The following code compiles just fine with GCC 4.2, but gives a 'could not deduce template argument' compile time error on VS 2005:
Vector4 is declared as
I would be deeply grateful for hints on how to resolve this issue. |
Registered Member
|
I don't have MSVC to test, but the quickest work-around that I can think of, is to make your function templated in VectorType, like:
(The 2nd "const" here was really useless, in my humble opinion) Also, note that Eigen already provides the possibility to implement custom coeff-wise operations like this, that will be more efficient, see: http://eigen.tuxfamily.org/dox/classEig ... 045c8a2e9e
Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list! |
Registered Member
|
Thanks a lot! I used your suggested custom coeff-wise implementation and it works like a charm. I even notice a slight overall increase in the performance of my application!
|
Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]