Modifying values of nullary-expressions using Eigen

五迷三道 提交于 2019-12-12 04:29:43

问题


I do want to write a custom nullary-expression in Eigen3, which is modifyable. As described in the Eigen documentation it seems like nullary-expression are not modifiable. Is there an easy way to get something like a modifyable custom nullary-expression?

I would like to use it to write a custom data wrapper.


回答1:


Nullary-expressions are indeed read-only. For read-write expressions, you currently has to write your own expression. To this end you can start with this tutorial and take inspiration from the implementation of the Transpose expression in Eigen.



来源:https://stackoverflow.com/questions/41034309/modifying-values-of-nullary-expressions-using-eigen

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