Unfortunately it doesn’t. But I think I have to pass ts argument to integrate_ode via xs. Thanks for the great idea. Hopefully it will work.
Right now it gives:
argument types are: (pbpkauto_model_namespace::pbpk_functor__, std::vector<stan::math::var, std::allocatorstan::math::var>, double, std::vector<stan::math::var, std::allocatorstan::math::var>, std::vector<stan::math::var, std::allocatorstan::math::var>, std::vector<double, std::allocator>, std::vector<int, std::allocator>, std::ostream *)
stan::math::assign(y_hat_ind, integrate_ode_bdf(pbpk_functor__(), y0, 0.0, static_cast<std::vector<local_scalar_t__> >(stan::math::array_builder<local_scalar_t__ >().add(0.25).add(1).add(0.75).add(1.0).add(1.5).add(2.0).add(3.0).add(4.0).add(6.0).add(8.0).add(12.0).add(18.0).add(24.0).add(30.0).add(36.0).array()), theta_ind, stan::model::rvalue(xs, stan::model::cons_list(stan::model::index_min_max(1, 1), stan::model::nil_index_list()), “xs”), stan::model::rvalue(xi, stan::model::cons_list(stan::model::index_min_max(1, 1), stan::model::nil_index_list()), “xi”), pstream__));
^
pbpk/pbpkauto.hpp(518): note: this candidate was rejected because arguments do not match
stan::math::assign(y_hat_ind, integrate_ode_bdf(pbpk_functor__(), y0, 0.0, static_cast<std::vector<local_scalar_t__> >(stan::math::array_builder<local_scalar_t__ >().add(0.25).add(1).add(0.75).add(1.0).add(1.5).add(2.0).add(3.0).add(4.0).add(6.0).add(8.0).add(12.0).add(18.0).add(24.0).add(30.0).add(36.0).array()), theta_ind, stan::model::rvalue(xs, stan::model::cons_list(stan::model::index_min_max(1, 1), stan::model::nil_index_list()), “xs”), stan::model::rvalue(xi, stan::model::cons_list(stan::model::index_min_max(1, 1), stan::model::nil_index_list()), “xi”), pstream__));
^
stan/lib/stan_math/stan/math/rev/mat/functor/integrate_ode_bdf.hpp(13): note: this candidate was rejected because arguments do not match
integrate_ode_bdf(const F& f, const std::vector<T_initial>& y0, double t0,