mrc-ide / drjacoby

Flexible Markov chain monte carlo via reparameterization
https://mrc-ide.github.io/drjacoby/
Other
12 stars 5 forks source link

Allow logLike and logPrior functions to call other functions internally #70

Closed pwinskill closed 2 years ago

pwinskill commented 3 years ago

Currently c++ functions for log likelihood and prior only work when stand alone. It may be possible to be more flexible, allowing users to define and call other functions internally. This may be an example:

https://cran.r-project.org/web/packages/rust/vignettes/rust-c-using-rcpp-vignette.html#cpp_fun

pwinskill commented 3 years ago

Scratchpad example now in https://github.com/mrc-ide/drjacoby/tree/pete/multi_cpp