简体   繁体   English

在C ++应用程序中嵌入Stan

[英]Embedding Stan in C++ application

I wanted to know whether it is possible to incorporate Stan in another C++ application. 我想知道是否可以将Stan合并到另一个C ++应用程序中。 Since Stan is also written in C++, there should be a way. 由于Stan也是用C ++编写的,所以应该有办法。 Currently, I am using RInside to achieve this but then you have all this data transferring which is time-consuming. 目前,我正在使用RInside来实现这一目标,但之后您将完成所有这些数据传输,这非常耗时。

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. 我们将把数学库分离成Stan 2.7的独立包含 - 包含所有矩阵,概率和自动存储代码。 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. 所有MCMC和转换和I / O代码都可以通过C ++调用,从Stan程序到C ++类的转换器也是如此。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM