Skip to content

Commit

Permalink
fix: Update boost rng type for Stan 2.35
Browse files Browse the repository at this point in the history
  • Loading branch information
riddell-stan committed Jul 3, 2024
1 parent ad5f16f commit 8484e89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion httpstan/stan_services.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

namespace py = pybind11;

using rng_t = boost::random::mixmax;

// forward declaration for function defined in another translation unit
stan::model::model_base &new_model(stan::io::var_context &data_context, unsigned int seed, std::ostream *msg_stream);

Expand Down Expand Up @@ -203,7 +205,7 @@ std::vector<double> log_prob_grad(py::dict data, const std::vector<double> &unco
// See exported docstring
std::vector<double> write_array(py::dict data, const std::vector<double> &unconstrained_parameters,
bool include_tparams = true, bool include_gqs = true) {
boost::ecuyer1988 base_rng(0);
rng_t base_rng(0);
std::vector<double> params_r_constrained;
stan::io::array_var_context &var_context = new_array_var_context(data);
// random_seed, the second argument, is unused but the function requires it.
Expand Down

0 comments on commit 8484e89

Please sign in to comment.