This is a parser bug because the generated C++ code doesn’t compile. @Bob_Carpenter should be able to track it down.
file7f767d87af5.cpp:557:32: error: no matching function for call to 'like'
lp_accum__.add(like<propto__>(get_base1(TDX,i,"TDX",1), beta, gamma, 0.90000000000000002, 0.80000000000000004, pstream__));
^~~~~~~~~~~~~~
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/services/util/initialize.hpp:114:39: note: in instantiation of function template specialization 'model7f73886e2d2_model_namespace::model7f73886e2d2_model::log_prob<false, true, double>' requested here
log_prob = model.template log_prob<false, true>
^
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:54:19: note: in instantiation of function template specialization 'stan::services::util::initialize<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >' requested here
= util::initialize(model, init, rng, init_radius,
^
/usr/local/lib/R/site-library/rstan/include/rstan/stan_fit.hpp:459:45: note: in instantiation of function template specialization 'stan::services::diagnose::diagnose<model7f73886e2d2_model_namespace::model7f73886e2d2_model>' requested here
return_code = stan::services::diagnose::diagnose(model,
^
/usr/local/lib/R/site-library/rstan/include/rstan/stan_fit.hpp:1200:11: note: in instantiation of function template specialization 'rstan::(anonymous namespace)::command<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >' requested here
ret = command(args, model_, holder, names_oi_tidx_,
^
file7f767d87af5.cpp:731:116: note: in instantiation of member function 'rstan::stan_fit<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >::call_sampler' requested here
&rstan::stan_fit<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::ecuyer1988>::call_sampler)
^
file7f767d87af5.cpp:296:1: note: candidate template ignored: invalid explicitly-specified argument for template parameter 'T0__'
like(const Eigen::Matrix<T0__, Eigen::Dynamic,1>& TDX,
^
file7f767d87af5.cpp:557:32: error: no matching function for call to 'like'
lp_accum__.add(like<propto__>(get_base1(TDX,i,"TDX",1), beta, gamma, 0.90000000000000002, 0.80000000000000004, pstream__));
^~~~~~~~~~~~~~
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/model/log_prob_grad.hpp:44:28: note: in instantiation of function template specialization 'model7f73886e2d2_model_namespace::model7f73886e2d2_model::log_prob<true, true, stan::math::var>' requested here
= model.template log_prob<propto, jacobian_adjust_transform>
^
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/services/util/initialize.hpp:147:37: note: in instantiation of function template specialization 'stan::model::log_prob_grad<true, true, model7f73886e2d2_model_namespace::model7f73886e2d2_model>' requested here
log_prob = stan::model::log_prob_grad<true, true>
^
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:54:19: note: in instantiation of function template specialization 'stan::services::util::initialize<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >' requested here
= util::initialize(model, init, rng, init_radius,
^
/usr/local/lib/R/site-library/rstan/include/rstan/stan_fit.hpp:459:45: note: in instantiation of function template specialization 'stan::services::diagnose::diagnose<model7f73886e2d2_model_namespace::model7f73886e2d2_model>' requested here
return_code = stan::services::diagnose::diagnose(model,
^
/usr/local/lib/R/site-library/rstan/include/rstan/stan_fit.hpp:1200:11: note: in instantiation of function template specialization 'rstan::(anonymous namespace)::command<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >' requested here
ret = command(args, model_, holder, names_oi_tidx_,
^
file7f767d87af5.cpp:731:116: note: in instantiation of member function 'rstan::stan_fit<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >::call_sampler' requested here
&rstan::stan_fit<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::ecuyer1988>::call_sampler)
^
file7f767d87af5.cpp:296:1: note: candidate template ignored: invalid explicitly-specified argument for template parameter 'T0__'
like(const Eigen::Matrix<T0__, Eigen::Dynamic,1>& TDX,
^
In file included from file7f767d87af5.cpp:720:
In file included from /usr/local/lib/R/site-library/rstan/include/rstan/rstaninc.hpp:3:
In file included from /usr/local/lib/R/site-library/rstan/include/rstan/stan_fit.hpp:35:
In file included from /usr/local/lib/R/site-library/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:10:
In file included from /usr/local/lib/R/site-library/StanHeaders/include/src/stan/model/test_gradients.hpp:6:
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/model/finite_diff_grad.hpp:46:21: error: no matching member function for call to 'log_prob'
.template log_prob<propto,
~~~~~~~~~~^~~~~~~~~~~~~~~~
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/model/test_gradients.hpp:62:7: note: in instantiation of function template specialization 'stan::model::finite_diff_grad<false, true, model7f73886e2d2_model_namespace::model7f73886e2d2_model>' requested here
finite_diff_grad<false, true, Model>(model, interrupt, params_r, params_i,
^
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:61:26: note: in instantiation of function template specialization 'stan::model::test_gradients<true, true, model7f73886e2d2_model_namespace::model7f73886e2d2_model>' requested here
= stan::model::test_gradients<true, true>(model, cont_vector,
^
/usr/local/lib/R/site-library/rstan/include/rstan/stan_fit.hpp:459:45: note: in instantiation of function template specialization 'stan::services::diagnose::diagnose<model7f73886e2d2_model_namespace::model7f73886e2d2_model>' requested here
return_code = stan::services::diagnose::diagnose(model,
^
/usr/local/lib/R/site-library/rstan/include/rstan/stan_fit.hpp:1200:11: note: in instantiation of function template specialization 'rstan::(anonymous namespace)::command<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >' requested here
ret = command(args, model_, holder, names_oi_tidx_,
^
file7f767d87af5.cpp:731:116: note: in instantiation of member function 'rstan::stan_fit<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >::call_sampler' requested here
&rstan::stan_fit<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::ecuyer1988>::call_sampler)
^
file7f767d87af5.cpp:507:9: note: candidate template ignored: substitution failure [with propto__ = false, jacobian__ = true, T__ = double]
T__ log_prob(vector<T__>& params_r__,
^
file7f767d87af5.cpp:575:8: note: candidate function template not viable: requires at most 2 arguments, but 3 were provided
T_ log_prob(Eigen::Matrix<T_,Eigen::Dynamic,1>& params_r,
^
In file included from file7f767d87af5.cpp:720:
In file included from /usr/local/lib/R/site-library/rstan/include/rstan/rstaninc.hpp:3:
In file included from /usr/local/lib/R/site-library/rstan/include/rstan/stan_fit.hpp:35:
In file included from /usr/local/lib/R/site-library/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:10:
In file included from /usr/local/lib/R/site-library/StanHeaders/include/src/stan/model/test_gradients.hpp:6:
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/model/finite_diff_grad.hpp:52:21: error: no matching member function for call to 'log_prob'
.template log_prob<propto,
~~~~~~~~~~^~~~~~~~~~~~~~~~
file7f767d87af5.cpp:507:9: note: candidate template ignored: substitution failure [with propto__ = false, jacobian__ = true, T__ = double]
T__ log_prob(vector<T__>& params_r__,
^
file7f767d87af5.cpp:575:8: note: candidate function template not viable: requires at most 2 arguments, but 3 were provided
T_ log_prob(Eigen::Matrix<T_,Eigen::Dynamic,1>& params_r,
^
file7f767d87af5.cpp:557:32: error: no matching function for call to 'like'
lp_accum__.add(like<propto__>(get_base1(TDX,i,"TDX",1), beta, gamma, 0.90000000000000002, 0.80000000000000004, pstream__));
^~~~~~~~~~~~~~
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/services/optimize/newton.hpp:61:31: note: in instantiation of function template specialization 'model7f73886e2d2_model_namespace::model7f73886e2d2_model::log_prob<false, false, double>' requested here
lp = model.template log_prob<false, false>(cont_vector, disc_vector,
^
/usr/local/lib/R/site-library/rstan/include/rstan/stan_fit.hpp:480:35: note: in instantiation of function template specialization 'stan::services::optimize::newton<model7f73886e2d2_model_namespace::model7f73886e2d2_model>' requested here
= stan::services::optimize::newton(model, *init_context_ptr,
^
/usr/local/lib/R/site-library/rstan/include/rstan/stan_fit.hpp:1200:11: note: in instantiation of function template specialization 'rstan::(anonymous namespace)::command<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >' requested here
ret = command(args, model_, holder, names_oi_tidx_,
^
file7f767d87af5.cpp:731:116: note: in instantiation of member function 'rstan::stan_fit<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >::call_sampler' requested here
&rstan::stan_fit<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::ecuyer1988>::call_sampler)
^
file7f767d87af5.cpp:296:1: note: candidate template ignored: invalid explicitly-specified argument for template parameter 'T0__'
like(const Eigen::Matrix<T0__, Eigen::Dynamic,1>& TDX,
^
file7f767d87af5.cpp:557:32: error: no matching function for call to 'like'
lp_accum__.add(like<propto__>(get_base1(TDX,i,"TDX",1), beta, gamma, 0.90000000000000002, 0.80000000000000004, pstream__));
^~~~~~~~~~~~~~
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/model/log_prob_grad.hpp:44:28: note: in instantiation of function template specialization 'model7f73886e2d2_model_namespace::model7f73886e2d2_model::log_prob<true, false, stan::math::var>' requested here
= model.template log_prob<propto, jacobian_adjust_transform>
^
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/optimization/newton.hpp:66:31: note: in instantiation of function template specialization 'stan::model::log_prob_grad<true, false, model7f73886e2d2_model_namespace::model7f73886e2d2_model>' requested here
f1 = stan::model::log_prob_grad<true, false>(model,
^
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/services/optimize/newton.hpp:102:36: note: in instantiation of function template specialization 'stan::optimization::newton_step<model7f73886e2d2_model_namespace::model7f73886e2d2_model>' requested here
lp = stan::optimization::newton_step(model, cont_vector, disc_vector);
^
/usr/local/lib/R/site-library/rstan/include/rstan/stan_fit.hpp:480:35: note: in instantiation of function template specialization 'stan::services::optimize::newton<model7f73886e2d2_model_namespace::model7f73886e2d2_model>' requested here
= stan::services::optimize::newton(model, *init_context_ptr,
^
/usr/local/lib/R/site-library/rstan/include/rstan/stan_fit.hpp:1200:11: note: in instantiation of function template specialization 'rstan::(anonymous namespace)::command<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >' requested here
ret = command(args, model_, holder, names_oi_tidx_,
^
file7f767d87af5.cpp:731:116: note: in instantiation of member function 'rstan::stan_fit<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >::call_sampler' requested here
&rstan::stan_fit<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::ecuyer1988>::call_sampler)
^
file7f767d87af5.cpp:296:1: note: candidate template ignored: invalid explicitly-specified argument for template parameter 'T0__'
like(const Eigen::Matrix<T0__, Eigen::Dynamic,1>& TDX,
^
file7f767d87af5.cpp:582:14: error: no matching member function for call to 'log_prob'
return log_prob<propto,jacobian,T_>(vec_params_r, vec_params_i, pstream);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/model/model_functional.hpp:23:11: note: in instantiation of function template specialization 'model7f73886e2d2_model_namespace::model7f73886e2d2_model::log_prob<true, true, stan::math::var>' requested here
log_prob<true, true, T>(const_cast<Eigen::Matrix<T, -1, 1>& >(x), o);
^
/usr/local/lib/R/site-library/StanHeaders/include/stan/math/rev/mat/functor/gradient.hpp:51:22: note: in instantiation of function template specialization 'stan::model::model_functional<model7f73886e2d2_model_namespace::model7f73886e2d2_model>::operator()<stan::math::var>' requested here
var fx_var = f(x_var);
^
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/model/gradient.hpp:31:21: note: in instantiation of function template specialization 'stan::math::gradient<stan::model::model_functional<model7f73886e2d2_model_namespace::model7f73886e2d2_model> >' requested here
stan::math::gradient(model_functional<M>(model, &ss), x, f, grad_f);
^
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/mcmc/hmc/hamiltonians/base_hamiltonian.hpp:69:24: note: in instantiation of function template specialization 'stan::model::gradient<model7f73886e2d2_model_namespace::model7f73886e2d2_model>' requested here
stan::model::gradient(model_, z.q, z.V, z.g, logger);
^
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/mcmc/hmc/integrators/expl_leapfrog.hpp:27:21: note: in instantiation of member function 'stan::mcmc::base_hamiltonian<model7f73886e2d2_model_namespace::model7f73886e2d2_model, stan::mcmc::dense_e_point, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >::update_potential_gradient' requested here
hamiltonian.update_potential_gradient(z, logger);
^
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/mcmc/hmc/integrators/expl_leapfrog.hpp:14:7: note: (skipping 4 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
expl_leapfrog()
^
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/services/sample/hmc_nuts_dense_e.hpp:79:11: note: in instantiation of member function 'stan::mcmc::dense_e_nuts<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >::dense_e_nuts' requested here
sampler(model, rng);
^
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/services/sample/hmc_nuts_dense_e.hpp:136:16: note: in instantiation of function template specialization 'stan::services::sample::hmc_nuts_dense_e<model7f73886e2d2_model_namespace::model7f73886e2d2_model>' requested here
return hmc_nuts_dense_e(model, init, unit_e_metric,
^
/usr/local/lib/R/site-library/rstan/include/rstan/stan_fit.hpp:602:13: note: in instantiation of function template specialization 'stan::services::sample::hmc_nuts_dense_e<model7f73886e2d2_model_namespace::model7f73886e2d2_model>' requested here
::hmc_nuts_dense_e(model, *init_context_ptr,
^
/usr/local/lib/R/site-library/rstan/include/rstan/stan_fit.hpp:1200:11: note: in instantiation of function template specialization 'rstan::(anonymous namespace)::command<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >' requested here
ret = command(args, model_, holder, names_oi_tidx_,
^
file7f767d87af5.cpp:731:116: note: in instantiation of member function 'rstan::stan_fit<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >::call_sampler' requested here
&rstan::stan_fit<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::ecuyer1988>::call_sampler)
^
file7f767d87af5.cpp:507:9: note: candidate template ignored: substitution failure [with propto__ = true, jacobian__ = true, T__ = stan::math::var]
T__ log_prob(vector<T__>& params_r__,
^
file7f767d87af5.cpp:575:8: note: candidate function template not viable: requires at most 2 arguments, but 3 were provided
T_ log_prob(Eigen::Matrix<T_,Eigen::Dynamic,1>& params_r,
^
file7f767d87af5.cpp:582:14: error: no matching member function for call to 'log_prob'
return log_prob<propto,jacobian,T_>(vec_params_r, vec_params_i, pstream);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/variational/advi.hpp:114:47: note: in instantiation of function template specialization 'model7f73886e2d2_model_namespace::model7f73886e2d2_model::log_prob<false, true, double>' requested here
double log_prob = model_.template log_prob<false, true>(zeta, &ss);
^
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/variational/advi.hpp:200:23: note: in instantiation of member function 'stan::variational::advi<model7f73886e2d2_model_namespace::model7f73886e2d2_model, stan::variational::normal_fullrank, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >::calc_ELBO' requested here
elbo_init = calc_ELBO(variational, logger);
^
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/variational/advi.hpp:497:17: note: in instantiation of member function 'stan::variational::advi<model7f73886e2d2_model_namespace::model7f73886e2d2_model, stan::variational::normal_fullrank, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >::adapt_eta' requested here
eta = adapt_eta(variational, adapt_iterations, logger);
^
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/services/experimental/advi/fullrank.hpp:85:20: note: in instantiation of member function 'stan::variational::advi<model7f73886e2d2_model_namespace::model7f73886e2d2_model, stan::variational::normal_fullrank, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >::run' requested here
cmd_advi.run(eta, adapt_engaged, adapt_iterations,
^
/usr/local/lib/R/site-library/rstan/include/rstan/stan_fit.hpp:871:9: note: in instantiation of function template specialization 'stan::services::experimental::advi::fullrank<model7f73886e2d2_model_namespace::model7f73886e2d2_model>' requested here
::fullrank(model, *init_context_ptr,
^
/usr/local/lib/R/site-library/rstan/include/rstan/stan_fit.hpp:1200:11: note: in instantiation of function template specialization 'rstan::(anonymous namespace)::command<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >' requested here
ret = command(args, model_, holder, names_oi_tidx_,
^
file7f767d87af5.cpp:731:116: note: in instantiation of member function 'rstan::stan_fit<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >::call_sampler' requested here
&rstan::stan_fit<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::ecuyer1988>::call_sampler)
^
file7f767d87af5.cpp:507:9: note: candidate template ignored: substitution failure [with propto__ = false, jacobian__ = true, T__ = double]
T__ log_prob(vector<T__>& params_r__,
^
file7f767d87af5.cpp:575:8: note: candidate function template not viable: requires at most 2 arguments, but 3 were provided
T_ log_prob(Eigen::Matrix<T_,Eigen::Dynamic,1>& params_r,
^
In file included from file7f767d87af5.cpp:720:
In file included from /usr/local/lib/R/site-library/rstan/include/rstan/rstaninc.hpp:3:
In file included from /usr/local/lib/R/site-library/rstan/include/rstan/stan_fit.hpp:52:
In file included from /usr/local/lib/R/site-library/StanHeaders/include/src/stan/services/experimental/advi/fullrank.hpp:11:
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/variational/advi.hpp:114:47: error: no matching member function for call to 'log_prob'
double log_prob = model_.template log_prob<false, true>(zeta, &ss);
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/variational/advi.hpp:200:23: note: in instantiation of member function 'stan::variational::advi<model7f73886e2d2_model_namespace::model7f73886e2d2_model, stan::variational::normal_meanfield, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >::calc_ELBO' requested here
elbo_init = calc_ELBO(variational, logger);
^
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/variational/advi.hpp:497:17: note: in instantiation of member function 'stan::variational::advi<model7f73886e2d2_model_namespace::model7f73886e2d2_model, stan::variational::normal_meanfield, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >::adapt_eta' requested here
eta = adapt_eta(variational, adapt_iterations, logger);
^
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/services/experimental/advi/meanfield.hpp:85:20: note: in instantiation of member function 'stan::variational::advi<model7f73886e2d2_model_namespace::model7f73886e2d2_model, stan::variational::normal_meanfield, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >::run' requested here
cmd_advi.run(eta, adapt_engaged, adapt_iterations,
^
/usr/local/lib/R/site-library/rstan/include/rstan/stan_fit.hpp:881:9: note: in instantiation of function template specialization 'stan::services::experimental::advi::meanfield<model7f73886e2d2_model_namespace::model7f73886e2d2_model>' requested here
::meanfield(model, *init_context_ptr,
^
/usr/local/lib/R/site-library/rstan/include/rstan/stan_fit.hpp:1200:11: note: in instantiation of function template specialization 'rstan::(anonymous namespace)::command<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >' requested here
ret = command(args, model_, holder, names_oi_tidx_,
^
file7f767d87af5.cpp:731:116: note: in instantiation of member function 'rstan::stan_fit<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >::call_sampler' requested here
&rstan::stan_fit<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::ecuyer1988>::call_sampler)
^
file7f767d87af5.cpp:507:9: note: candidate template ignored: could not match 'vector' against 'Matrix'
T__ log_prob(vector<T__>& params_r__,
^
file7f767d87af5.cpp:575:8: note: candidate template ignored: substitution failure [with propto = false, jacobian = true, T_ = double]
T_ log_prob(Eigen::Matrix<T_,Eigen::Dynamic,1>& params_r,
^
In file included from file7f767d87af5.cpp:720:
In file included from /usr/local/lib/R/site-library/rstan/include/rstan/rstaninc.hpp:3:
In file included from /usr/local/lib/R/site-library/rstan/include/rstan/stan_fit.hpp:36:
In file included from /usr/local/lib/R/site-library/StanHeaders/include/src/stan/services/optimize/bfgs.hpp:11:
In file included from /usr/local/lib/R/site-library/StanHeaders/include/src/stan/optimization/bfgs.hpp:5:
/usr/local/lib/R/site-library/StanHeaders/include/src/stan/model/log_prob_propto.hpp:45:28: error: no matching member function for call to 'log_prob'
= model.template log_prob<true, jacobian_adjust_transform>
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/R/site-library/rstan/include/rstan/stan_fit.hpp:1121:40: note: in instantiation of function template specialization 'stan::model::log_prob_propto<true, model7f73886e2d2_model_namespace::model7f73886e2d2_model>' requested here
return Rcpp::wrap(stan::model::log_prob_propto<true>(model_, par_r, par_i, &rstan::io::rcout));
^
file7f767d87af5.cpp:749:116: note: in instantiation of member function 'rstan::stan_fit<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014, 0, 2147483563>, boost::random::linear_congruential_engine<unsigned int, 40692, 0, 2147483399> > >::log_prob' requested here
&rstan::stan_fit<model7f73886e2d2_model_namespace::model7f73886e2d2_model, boost::random::ecuyer1988>::log_prob)
^
file7f767d87af5.cpp:507:9: note: candidate template ignored: substitution failure [with propto__ = true, jacobian__ = true, T__ = stan::math::var]
T__ log_prob(vector<T__>& params_r__,
^
file7f767d87af5.cpp:575:8: note: candidate function template not viable: requires at most 2 arguments, but 3 were provided
T_ log_prob(Eigen::Matrix<T_,Eigen::Dynamic,1>& params_r,
^