Embedding Stan in C++ application

ⅰ亾dé卋堺 提交于 2019-12-07 10:51:43

问题


I wanted to know whether it is possible to incorporate Stan in another C++ application. Since Stan is also written in C++, there should be a way. Currently, I am using RInside to achieve this but then you have all this data transferring which is time-consuming.


回答1:


What specifically did you want from Stan? We're going to separate out the math library into a standalone include for Stan 2.7 --- that contains all the matrix, probability, and autodiff code. Our repos already reflect this structure. All of the MCMC and transform and I/O code is callable through C++, as is the translator from a Stan program to a C++ class.



来源:https://stackoverflow.com/questions/31356828/embedding-stan-in-c-application

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