Issue casting C++ Eigen::Matrix types via templates

∥☆過路亽.° 提交于 2019-11-30 21:38:22
vpradeep

Thanks, @piotr-s! Looks like this is not an Eigen-specific thing, but more generally just some tricky syntax for calling a templated member functions.

Here's a related question: How to call a template member function?

Here's the answer:

mat_d = mat_s.template cast<double>();

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!