CppBugs
CppBugs copied to clipboard
c++ version of BUGS
When put the example into a cpp file, then compiles using "clang++ -I.. -Wall -O2 -std=c++11 test1.cpp -o test1 -larmadillo", it gives: test1.cpp:59:11: error: no matching constructor for initialization of...
Hi Whit, Just wondering, it the way to define deterministic node changed recently? I used to be able to put a customized transformation in a lambda function "model", And then...
Hi all, I'm new to CppBugs. First I want to say this project is truly awesome and thanks for the excellent work. As a statistician and C++ amateur, I'm wondering...
I have a problem with the way the track and dxxxx functions take their arguments. Let's take the following example (it uses the same idioms as CppBugds examples): MCModelboost::minstd_rand m(model);...
The schur multiplication of an ivec with a double is rounded. That is a problem for Bernoulli and Binomial distributions, at least. For example the following program (that simulate a...
On my machine, the radon1 test fails : /usr/bin/time -o ./benchmark.output --append --format="%e %U %S" ./radon1 error: max(): object has no elements terminate called after throwing an instance of 'std::logic_error'...
I tried to modify the linear example test to have `b` as a uniform variable. Declaring `Uniform b;` on line 16, and then updating as `b.dunif(-10, 10);` on line 39,...
The existing (and well circulated) example of inlining a CppBugs run into R via Rcpp is http://www.mail-archive.com/[email protected]/msg00825.html An updated version with eg. LDA, a Dirichlet process mixture model, or an...