Skip to content

Instantly share code, notes, and snippets.

@bbbales2
Created May 15, 2021 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbbales2/43ce7fc4adc1503bcfddd8c24afc45eb to your computer and use it in GitHub Desktop.
Save bbbales2/43ce7fc4adc1503bcfddd8c24afc45eb to your computer and use it in GitHub Desktop.
error_log_ode_adjoint
--- Translating Stan model to C++ code ---
bin/stanc --o=lv.hpp lv.stan
--- Compiling, linking C++ code ---
clang++ -std=c++1y -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I stan/lib/stan_math/lib/tbb_2020.3/include -O3 -I src -I stan/src -I lib/rapidjson_1.1.0/ -I lib/CLI11-1.9.1/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.3.9 -I stan/lib/stan_math/lib/boost_1.75.0 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DBOOST_DISABLE_ASSERTS -c -include-pch stan/src/stan/model/model_header.hpp.gch -x c++ -o lv.o lv.hpp
In file included from lv.hpp:1:
In file included from stan/src/stan/model/model_header.hpp:4:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math.hpp:19:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev.hpp:11:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor.hpp:20:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:6:
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:38: error:
no matching function for call to object of type 'const
std::decay_t<dz_dt_odefunctor__>' (aka 'const
lv_model_namespace::dz_dt_odefunctor__')
[&](auto&&... args) { return solver_->f_(t, y, msgs_, args...); },
^~~~~~~~~~~
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/prim/functor/apply.hpp:26:10: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double, std::vector<double,
std::allocator<double> > >::rhs(double, const Eigen::Matrix<double, -1, 1,
0, -1, 1> &, const std::tuple<vector<double, arena_allocator<double> > >
&)::(anonymous class)::operator()<const std::vector<double,
stan::math::arena_allocator<double> > &>' requested here
return f(std::forward<decltype(std::get<I>(t))>(std::get<I>(t))...);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/prim/functor/apply.hpp:44:20: note:
in instantiation of function template specialization
'stan::math::internal::apply_impl<(lambda at
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:9),
const std::tuple<std::vector<double, stan::math::arena_allocator<double> >
> &, 0>' requested here
return internal::apply_impl(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:571:12: note:
in instantiation of function template specialization
'stan::math::apply<(lambda at
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:9),
const std::tuple<std::vector<double, stan::math::arena_allocator<double> >
> &>' requested here
return apply(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:590:39: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double, std::vector<double,
std::allocator<double> > >::rhs<Eigen::Matrix<double, -1, 1, 0, -1, 1>,
std::vector<double, stan::math::arena_allocator<double> > >' requested
here
const Eigen::VectorXd dy_dt_vec = rhs(t, y_vec, value_of_args_tuple_);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:603:37: note:
in instantiation of member function
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double, std::vector<double,
std::allocator<double> > >::rhs' requested here
return cast_to_self(user_data)->rhs(t, NV_DATA_S(y), NV_DATA_S(ydot));
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:174:27: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double, std::vector<double,
std::allocator<double> >
>::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
nullptr>' requested here
auto integrator = new integrator_vari(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:254:10: note:
in instantiation of function template specialization
'stan::math::ode_adjoint_impl<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double,
Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>,
Eigen::Matrix<double, -1, 1, 0, -1, 1> >,
Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>,
Eigen::Matrix<double, -1, 1, 0, -1, 1> >, std::vector<double,
std::allocator<double> > , nullptr, nullptr>' requested here
return ode_adjoint_impl(
^
lv.hpp:135:1: note: candidate template ignored: could not match 'allocator'
against 'arena_allocator'
operator()(const T0__& t, const T1__& z, std::ostream* pstream__,
^
In file included from lv.hpp:1:
In file included from stan/src/stan/model/model_header.hpp:4:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math.hpp:19:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev.hpp:11:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor.hpp:20:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:6:
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:38: error:
no matching function for call to object of type 'const
std::decay_t<dz_dt_odefunctor__>' (aka 'const
lv_model_namespace::dz_dt_odefunctor__')
[&](auto&&... args) { return solver_->f_(t, y, msgs_, args...); },
^~~~~~~~~~~
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/prim/functor/apply.hpp:26:10: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double, std::vector<double,
std::allocator<double> > >::rhs(double, const
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1> &,
const std::tuple<vector<double, arena_allocator<double> > > &)::(anonymous
class)::operator()<const std::vector<double,
stan::math::arena_allocator<double> > &>' requested here
return f(std::forward<decltype(std::get<I>(t))>(std::get<I>(t))...);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/prim/functor/apply.hpp:44:20: note:
in instantiation of function template specialization
'stan::math::internal::apply_impl<(lambda at
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:9),
const std::tuple<std::vector<double, stan::math::arena_allocator<double> >
> &, 0>' requested here
return internal::apply_impl(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:571:12: note:
in instantiation of function template specialization
'stan::math::apply<(lambda at
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:9),
const std::tuple<std::vector<double, stan::math::arena_allocator<double> >
> &>' requested here
return apply(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:699:11: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double, std::vector<double,
std::allocator<double> >
>::rhs<Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1,
1>, std::vector<double, stan::math::arena_allocator<double> > >' requested
here
= rhs(t, y_var, value_of_args_tuple_);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:725:37: note:
in instantiation of member function
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double, std::vector<double,
std::allocator<double> > >::jacobian_rhs_states' requested here
return cast_to_self(user_data)->jacobian_rhs_states(t, y, J);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:174:27: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double, std::vector<double,
std::allocator<double> >
>::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
nullptr>' requested here
auto integrator = new integrator_vari(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:254:10: note:
in instantiation of function template specialization
'stan::math::ode_adjoint_impl<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double,
Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>,
Eigen::Matrix<double, -1, 1, 0, -1, 1> >,
Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>,
Eigen::Matrix<double, -1, 1, 0, -1, 1> >, std::vector<double,
std::allocator<double> > , nullptr, nullptr>' requested here
return ode_adjoint_impl(
^
lv.hpp:135:1: note: candidate template ignored: could not match 'allocator'
against 'arena_allocator'
operator()(const T0__& t, const T1__& z, std::ostream* pstream__,
^
In file included from lv.hpp:1:
In file included from stan/src/stan/model/model_header.hpp:4:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math.hpp:19:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev.hpp:11:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor.hpp:20:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:6:
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:38: error:
no matching function for call to object of type 'const
std::decay_t<dz_dt_odefunctor__>' (aka 'const
lv_model_namespace::dz_dt_odefunctor__')
[&](auto&&... args) { return solver_->f_(t, y, msgs_, args...); },
^~~~~~~~~~~
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/prim/functor/apply.hpp:26:10: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double, std::vector<double,
std::allocator<double> > >::rhs(double, const
stan::math::arena_matrix<Eigen::Matrix<double, -1, 1, 0, -1, 1> > &, const
std::tuple<vector<double, arena_allocator<double> > > &)::(anonymous
class)::operator()<const std::vector<double,
stan::math::arena_allocator<double> > &>' requested here
return f(std::forward<decltype(std::get<I>(t))>(std::get<I>(t))...);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/prim/functor/apply.hpp:44:20: note:
in instantiation of function template specialization
'stan::math::internal::apply_impl<(lambda at
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:9),
const std::tuple<std::vector<double, stan::math::arena_allocator<double> >
> &, 0>' requested here
return internal::apply_impl(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:571:12: note:
in instantiation of function template specialization
'stan::math::apply<(lambda at
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:9),
const std::tuple<std::vector<double, stan::math::arena_allocator<double> >
> &>' requested here
return apply(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:416:13: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double, std::vector<double,
std::allocator<double> >
>::rhs<stan::math::arena_matrix<Eigen::Matrix<double, -1, 1, 0, -1, 1> >,
std::vector<double, stan::math::arena_allocator<double> > >' requested
here
rhs(value_of(ts_[i]), y_[i], value_of_args_tuple_));
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:193:3: note:
in instantiation of member function
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double, std::vector<double,
std::allocator<double> > >::chain' requested here
cvodes_integrator_adjoint_vari(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:174:27: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double, std::vector<double,
std::allocator<double> >
>::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
nullptr>' requested here
auto integrator = new integrator_vari(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:254:10: note:
in instantiation of function template specialization
'stan::math::ode_adjoint_impl<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double,
Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>,
Eigen::Matrix<double, -1, 1, 0, -1, 1> >,
Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>,
Eigen::Matrix<double, -1, 1, 0, -1, 1> >, std::vector<double,
std::allocator<double> > , nullptr, nullptr>' requested here
return ode_adjoint_impl(
^
lv.hpp:135:1: note: candidate template ignored: could not match 'allocator'
against 'arena_allocator'
operator()(const T0__& t, const T1__& z, std::ostream* pstream__,
^
In file included from lv.hpp:1:
In file included from stan/src/stan/model/model_header.hpp:4:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math.hpp:19:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev.hpp:11:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor.hpp:20:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:6:
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:545:11: error:
no matching member function for call to 'rhs'
rhs(t_init, value_of(y0_), value_of_args_tuple_));
^~~
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:193:3: note:
in instantiation of member function
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double, std::vector<double,
std::allocator<double> > >::chain' requested here
cvodes_integrator_adjoint_vari(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:174:27: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double, std::vector<double,
std::allocator<double> >
>::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
nullptr>' requested here
auto integrator = new integrator_vari(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:254:10: note:
in instantiation of function template specialization
'stan::math::ode_adjoint_impl<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double,
Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>,
Eigen::Matrix<double, -1, 1, 0, -1, 1> >,
Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>,
Eigen::Matrix<double, -1, 1, 0, -1, 1> >, std::vector<double,
std::allocator<double> > , nullptr, nullptr>' requested here
return ode_adjoint_impl(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:569:18: note:
candidate template ignored: substitution failure [with yT =
stan::math::arena_matrix<Eigen::Matrix<double, -1, 1, 0, -1, 1> >, ArgsT =
<std::vector<double, stan::math::arena_allocator<double> >>]
constexpr auto rhs(double t, const yT& y,
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:625:11: error:
no matching member function for call to 'rhs'
= rhs(t, y_vars, value_of_args_tuple_);
^~~
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:640:37: note:
in instantiation of member function
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double, std::vector<double,
std::allocator<double> > >::rhs_adj' requested here
return cast_to_self(user_data)->rhs_adj(t, y, yB, yBdot);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:193:3: note:
in instantiation of member function
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double, std::vector<double,
std::allocator<double> > >::chain' requested here
cvodes_integrator_adjoint_vari(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:174:27: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double, std::vector<double,
std::allocator<double> >
>::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
nullptr>' requested here
auto integrator = new integrator_vari(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:254:10: note:
in instantiation of function template specialization
'stan::math::ode_adjoint_impl<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double,
Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>,
Eigen::Matrix<double, -1, 1, 0, -1, 1> >,
Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>,
Eigen::Matrix<double, -1, 1, 0, -1, 1> >, std::vector<double,
std::allocator<double> > , nullptr, nullptr>' requested here
return ode_adjoint_impl(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:569:18: note:
candidate template ignored: substitution failure [with yT =
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, ArgsT
= <std::vector<double, stan::math::arena_allocator<double> >>]
constexpr auto rhs(double t, const yT& y,
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:38: error:
no matching function for call to object of type 'const
std::decay_t<dz_dt_odefunctor__>' (aka 'const
lv_model_namespace::dz_dt_odefunctor__')
[&](auto&&... args) { return solver_->f_(t, y, msgs_, args...); },
^~~~~~~~~~~
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/prim/functor/apply.hpp:26:10: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double, std::vector<double,
std::allocator<double> > >::rhs(double, const Eigen::Map<const
Eigen::Matrix<double, -1, 1, 0, -1, 1>, 0, Eigen::Stride<0, 0> > &, const
std::tuple<vector<double, arena_allocator<double> > > &)::(anonymous
class)::operator()<const std::vector<double,
stan::math::arena_allocator<double> > &>' requested here
return f(std::forward<decltype(std::get<I>(t))>(std::get<I>(t))...);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/prim/functor/apply.hpp:44:20: note:
in instantiation of function template specialization
'stan::math::internal::apply_impl<(lambda at
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:9),
const std::tuple<std::vector<double, stan::math::arena_allocator<double> >
> &, 0>' requested here
return internal::apply_impl(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:571:12: note:
in instantiation of function template specialization
'stan::math::apply<(lambda at
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:9),
const std::tuple<std::vector<double, stan::math::arena_allocator<double> >
> &>' requested here
return apply(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:665:11: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double, std::vector<double,
std::allocator<double> > >::rhs<Eigen::Map<const Eigen::Matrix<double, -1,
1, 0, -1, 1>, 0, Eigen::Stride<0, 0> >, std::vector<double,
stan::math::arena_allocator<double> > >' requested here
= rhs(t, y_vec, local_args_tuple_);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:684:37: note:
in instantiation of member function
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double, std::vector<double,
std::allocator<double> > >::quad_rhs_adj' requested here
return cast_to_self(user_data)->quad_rhs_adj(t, y, yB, qBdot);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:193:3: note:
in instantiation of member function
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double, std::vector<double,
std::allocator<double> > >::chain' requested here
cvodes_integrator_adjoint_vari(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:174:27: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double, std::vector<double,
std::allocator<double> >
>::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
nullptr>' requested here
auto integrator = new integrator_vari(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:254:10: note:
in instantiation of function template specialization
'stan::math::ode_adjoint_impl<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<double, -1, 1, 0, -1, 1>, int, double,
Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>,
Eigen::Matrix<double, -1, 1, 0, -1, 1> >,
Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>,
Eigen::Matrix<double, -1, 1, 0, -1, 1> >, std::vector<double,
std::allocator<double> > , nullptr, nullptr>' requested here
return ode_adjoint_impl(
^
lv.hpp:135:1: note: candidate template ignored: could not match 'allocator'
against 'arena_allocator'
operator()(const T0__& t, const T1__& z, std::ostream* pstream__,
^
In file included from lv.hpp:1:
In file included from stan/src/stan/model/model_header.hpp:4:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math.hpp:19:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev.hpp:11:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor.hpp:20:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:6:
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:38: error:
no matching function for call to object of type 'const
std::decay_t<dz_dt_odefunctor__>' (aka 'const
lv_model_namespace::dz_dt_odefunctor__')
[&](auto&&... args) { return solver_->f_(t, y, msgs_, args...); },
^~~~~~~~~~~
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/prim/functor/apply.hpp:26:10: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, int,
double, std::vector<stan::math::var_value<double, void>,
std::allocator<stan::math::var_value<double, void> > > >::rhs(double,
const Eigen::Matrix<double, -1, 1, 0, -1, 1> &, const
std::tuple<vector<double, arena_allocator<double> > > &)::(anonymous
class)::operator()<const std::vector<double,
stan::math::arena_allocator<double> > &>' requested here
return f(std::forward<decltype(std::get<I>(t))>(std::get<I>(t))...);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/prim/functor/apply.hpp:44:20: note:
in instantiation of function template specialization
'stan::math::internal::apply_impl<(lambda at
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:9),
const std::tuple<std::vector<double, stan::math::arena_allocator<double> >
> &, 0>' requested here
return internal::apply_impl(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:571:12: note:
in instantiation of function template specialization
'stan::math::apply<(lambda at
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:9),
const std::tuple<std::vector<double, stan::math::arena_allocator<double> >
> &>' requested here
return apply(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:590:39: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, int,
double, std::vector<stan::math::var_value<double, void>,
std::allocator<stan::math::var_value<double, void> > >
>::rhs<Eigen::Matrix<double, -1, 1, 0, -1, 1>, std::vector<double,
stan::math::arena_allocator<double> > >' requested here
const Eigen::VectorXd dy_dt_vec = rhs(t, y_vec, value_of_args_tuple_);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:603:37: note:
in instantiation of member function
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, int,
double, std::vector<stan::math::var_value<double, void>,
std::allocator<stan::math::var_value<double, void> > > >::rhs' requested
here
return cast_to_self(user_data)->rhs(t, NV_DATA_S(y), NV_DATA_S(ydot));
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:85:25: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, int,
double, std::vector<stan::math::var_value<double, void>,
std::allocator<stan::math::var_value<double, void> > >
>::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
nullptr>' requested here
auto integrator = new integrator_vari(
^
lv.hpp:669:14: note: in instantiation of function template specialization
'lv_model_namespace::lv_model::log_prob_impl<false, false,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>,
Eigen::Matrix<int, -1, 1, 0, -1, 1>, nullptr, nullptr>' requested here
return log_prob_impl<propto__, jacobian__>(params_r, params_i, pstream);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/src/stan/model/model_base_crtp.hpp:95:50: note:
in instantiation of function template specialization
'lv_model_namespace::lv_model::log_prob<false, false,
stan::math::var_value<double, void> >' requested here
return static_cast<const M*>(this)->template log_prob<false, false>(theta,
^
lv.hpp:152:3: note: in instantiation of member function
'stan::model::model_base_crtp<lv_model_namespace::lv_model>::log_prob'
requested here
~lv_model() { }
^
lv.hpp:135:1: note: candidate template ignored: could not match 'allocator'
against 'arena_allocator'
operator()(const T0__& t, const T1__& z, std::ostream* pstream__,
^
In file included from lv.hpp:1:
In file included from stan/src/stan/model/model_header.hpp:4:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math.hpp:19:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev.hpp:11:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor.hpp:20:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:6:
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:38: error:
no matching function for call to object of type 'const
std::decay_t<dz_dt_odefunctor__>' (aka 'const
lv_model_namespace::dz_dt_odefunctor__')
[&](auto&&... args) { return solver_->f_(t, y, msgs_, args...); },
^~~~~~~~~~~
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/prim/functor/apply.hpp:26:10: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, int,
double, std::vector<stan::math::var_value<double, void>,
std::allocator<stan::math::var_value<double, void> > > >::rhs(double,
const Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>
&, const std::tuple<vector<double, arena_allocator<double> > >
&)::(anonymous class)::operator()<const std::vector<double,
stan::math::arena_allocator<double> > &>' requested here
return f(std::forward<decltype(std::get<I>(t))>(std::get<I>(t))...);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/prim/functor/apply.hpp:44:20: note:
in instantiation of function template specialization
'stan::math::internal::apply_impl<(lambda at
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:9),
const std::tuple<std::vector<double, stan::math::arena_allocator<double> >
> &, 0>' requested here
return internal::apply_impl(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:571:12: note:
in instantiation of function template specialization
'stan::math::apply<(lambda at
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:9),
const std::tuple<std::vector<double, stan::math::arena_allocator<double> >
> &>' requested here
return apply(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:699:11: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, int,
double, std::vector<stan::math::var_value<double, void>,
std::allocator<stan::math::var_value<double, void> > >
>::rhs<Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1,
1>, std::vector<double, stan::math::arena_allocator<double> > >' requested
here
= rhs(t, y_var, value_of_args_tuple_);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:725:37: note:
in instantiation of member function
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, int,
double, std::vector<stan::math::var_value<double, void>,
std::allocator<stan::math::var_value<double, void> > >
>::jacobian_rhs_states' requested here
return cast_to_self(user_data)->jacobian_rhs_states(t, y, J);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:85:25: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, int,
double, std::vector<stan::math::var_value<double, void>,
std::allocator<stan::math::var_value<double, void> > >
>::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
nullptr>' requested here
auto integrator = new integrator_vari(
^
lv.hpp:669:14: note: in instantiation of function template specialization
'lv_model_namespace::lv_model::log_prob_impl<false, false,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>,
Eigen::Matrix<int, -1, 1, 0, -1, 1>, nullptr, nullptr>' requested here
return log_prob_impl<propto__, jacobian__>(params_r, params_i, pstream);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/src/stan/model/model_base_crtp.hpp:95:50: note:
in instantiation of function template specialization
'lv_model_namespace::lv_model::log_prob<false, false,
stan::math::var_value<double, void> >' requested here
return static_cast<const M*>(this)->template log_prob<false, false>(theta,
^
lv.hpp:152:3: note: in instantiation of member function
'stan::model::model_base_crtp<lv_model_namespace::lv_model>::log_prob'
requested here
~lv_model() { }
^
lv.hpp:135:1: note: candidate template ignored: could not match 'allocator'
against 'arena_allocator'
operator()(const T0__& t, const T1__& z, std::ostream* pstream__,
^
In file included from lv.hpp:1:
In file included from stan/src/stan/model/model_header.hpp:4:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math.hpp:19:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev.hpp:11:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor.hpp:20:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:6:
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:38: error:
no matching function for call to object of type 'const
std::decay_t<dz_dt_odefunctor__>' (aka 'const
lv_model_namespace::dz_dt_odefunctor__')
[&](auto&&... args) { return solver_->f_(t, y, msgs_, args...); },
^~~~~~~~~~~
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/prim/functor/apply.hpp:26:10: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, int,
double, std::vector<stan::math::var_value<double, void>,
std::allocator<stan::math::var_value<double, void> > > >::rhs(double,
const stan::math::arena_matrix<Eigen::Matrix<double, -1, 1, 0, -1, 1> > &,
const std::tuple<vector<double, arena_allocator<double> > > &)::(anonymous
class)::operator()<const std::vector<double,
stan::math::arena_allocator<double> > &>' requested here
return f(std::forward<decltype(std::get<I>(t))>(std::get<I>(t))...);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/prim/functor/apply.hpp:44:20: note:
in instantiation of function template specialization
'stan::math::internal::apply_impl<(lambda at
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:9),
const std::tuple<std::vector<double, stan::math::arena_allocator<double> >
> &, 0>' requested here
return internal::apply_impl(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:571:12: note:
in instantiation of function template specialization
'stan::math::apply<(lambda at
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:9),
const std::tuple<std::vector<double, stan::math::arena_allocator<double> >
> &>' requested here
return apply(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:416:13: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, int,
double, std::vector<stan::math::var_value<double, void>,
std::allocator<stan::math::var_value<double, void> > >
>::rhs<stan::math::arena_matrix<Eigen::Matrix<double, -1, 1, 0, -1, 1> >,
std::vector<double, stan::math::arena_allocator<double> > >' requested
here
rhs(value_of(ts_[i]), y_[i], value_of_args_tuple_));
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:193:3: note:
in instantiation of member function
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, int,
double, std::vector<stan::math::var_value<double, void>,
std::allocator<stan::math::var_value<double, void> > > >::chain' requested
here
cvodes_integrator_adjoint_vari(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:85:25: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, int,
double, std::vector<stan::math::var_value<double, void>,
std::allocator<stan::math::var_value<double, void> > >
>::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
nullptr>' requested here
auto integrator = new integrator_vari(
^
lv.hpp:669:14: note: in instantiation of function template specialization
'lv_model_namespace::lv_model::log_prob_impl<false, false,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>,
Eigen::Matrix<int, -1, 1, 0, -1, 1>, nullptr, nullptr>' requested here
return log_prob_impl<propto__, jacobian__>(params_r, params_i, pstream);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/src/stan/model/model_base_crtp.hpp:95:50: note:
in instantiation of function template specialization
'lv_model_namespace::lv_model::log_prob<false, false,
stan::math::var_value<double, void> >' requested here
return static_cast<const M*>(this)->template log_prob<false, false>(theta,
^
lv.hpp:152:3: note: in instantiation of member function
'stan::model::model_base_crtp<lv_model_namespace::lv_model>::log_prob'
requested here
~lv_model() { }
^
lv.hpp:135:1: note: candidate template ignored: could not match 'allocator'
against 'arena_allocator'
operator()(const T0__& t, const T1__& z, std::ostream* pstream__,
^
In file included from lv.hpp:1:
In file included from stan/src/stan/model/model_header.hpp:4:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math.hpp:19:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev.hpp:11:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor.hpp:20:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:6:
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:38: error:
no matching function for call to object of type 'const
std::decay_t<dz_dt_odefunctor__>' (aka 'const
lv_model_namespace::dz_dt_odefunctor__')
[&](auto&&... args) { return solver_->f_(t, y, msgs_, args...); },
^~~~~~~~~~~
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/prim/functor/apply.hpp:26:10: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, int,
double, std::vector<stan::math::var_value<double, void>,
std::allocator<stan::math::var_value<double, void> > > >::rhs(double,
const Eigen::CwiseUnaryOp<(lambda at
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/prim/fun/value_of.hpp:67:28),
const Eigen::Map<Eigen::Matrix<stan::math::var_value<double, void>, -1, 1,
0, -1, 1>, 0, Eigen::Stride<0, 0> > > &, const std::tuple<vector<double,
arena_allocator<double> > > &)::(anonymous class)::operator()<const
std::vector<double, stan::math::arena_allocator<double> > &>' requested
here
return f(std::forward<decltype(std::get<I>(t))>(std::get<I>(t))...);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/prim/functor/apply.hpp:44:20: note:
in instantiation of function template specialization
'stan::math::internal::apply_impl<(lambda at
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:9),
const std::tuple<std::vector<double, stan::math::arena_allocator<double> >
> &, 0>' requested here
return internal::apply_impl(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:571:12: note:
in instantiation of function template specialization
'stan::math::apply<(lambda at
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:9),
const std::tuple<std::vector<double, stan::math::arena_allocator<double> >
> &>' requested here
return apply(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:545:11: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, int,
double, std::vector<stan::math::var_value<double, void>,
std::allocator<stan::math::var_value<double, void> > >
>::rhs<Eigen::CwiseUnaryOp<(lambda at
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/prim/fun/value_of.hpp:67:28),
const Eigen::Map<Eigen::Matrix<stan::math::var_value<double, void>, -1, 1,
0, -1, 1>, 0, Eigen::Stride<0, 0> > >, std::vector<double,
stan::math::arena_allocator<double> > >' requested here
rhs(t_init, value_of(y0_), value_of_args_tuple_));
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:193:3: note:
in instantiation of member function
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, int,
double, std::vector<stan::math::var_value<double, void>,
std::allocator<stan::math::var_value<double, void> > > >::chain' requested
here
cvodes_integrator_adjoint_vari(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:85:25: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, int,
double, std::vector<stan::math::var_value<double, void>,
std::allocator<stan::math::var_value<double, void> > >
>::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
nullptr>' requested here
auto integrator = new integrator_vari(
^
lv.hpp:669:14: note: in instantiation of function template specialization
'lv_model_namespace::lv_model::log_prob_impl<false, false,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>,
Eigen::Matrix<int, -1, 1, 0, -1, 1>, nullptr, nullptr>' requested here
return log_prob_impl<propto__, jacobian__>(params_r, params_i, pstream);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/src/stan/model/model_base_crtp.hpp:95:50: note:
in instantiation of function template specialization
'lv_model_namespace::lv_model::log_prob<false, false,
stan::math::var_value<double, void> >' requested here
return static_cast<const M*>(this)->template log_prob<false, false>(theta,
^
lv.hpp:152:3: note: in instantiation of member function
'stan::model::model_base_crtp<lv_model_namespace::lv_model>::log_prob'
requested here
~lv_model() { }
^
lv.hpp:135:1: note: candidate template ignored: could not match 'allocator'
against 'arena_allocator'
operator()(const T0__& t, const T1__& z, std::ostream* pstream__,
^
In file included from lv.hpp:1:
In file included from stan/src/stan/model/model_header.hpp:4:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math.hpp:19:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev.hpp:11:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor.hpp:20:
In file included from /home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:6:
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:625:11: error:
no matching member function for call to 'rhs'
= rhs(t, y_vars, value_of_args_tuple_);
^~~
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:640:37: note:
in instantiation of member function
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, int,
double, std::vector<stan::math::var_value<double, void>,
std::allocator<stan::math::var_value<double, void> > > >::rhs_adj'
requested here
return cast_to_self(user_data)->rhs_adj(t, y, yB, yBdot);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:193:3: note:
in instantiation of member function
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, int,
double, std::vector<stan::math::var_value<double, void>,
std::allocator<stan::math::var_value<double, void> > > >::chain' requested
here
cvodes_integrator_adjoint_vari(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:85:25: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, int,
double, std::vector<stan::math::var_value<double, void>,
std::allocator<stan::math::var_value<double, void> > >
>::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
nullptr>' requested here
auto integrator = new integrator_vari(
^
lv.hpp:669:14: note: in instantiation of function template specialization
'lv_model_namespace::lv_model::log_prob_impl<false, false,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>,
Eigen::Matrix<int, -1, 1, 0, -1, 1>, nullptr, nullptr>' requested here
return log_prob_impl<propto__, jacobian__>(params_r, params_i, pstream);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/src/stan/model/model_base_crtp.hpp:95:50: note:
in instantiation of function template specialization
'lv_model_namespace::lv_model::log_prob<false, false,
stan::math::var_value<double, void> >' requested here
return static_cast<const M*>(this)->template log_prob<false, false>(theta,
^
lv.hpp:152:3: note: in instantiation of member function
'stan::model::model_base_crtp<lv_model_namespace::lv_model>::log_prob'
requested here
~lv_model() { }
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:569:18: note:
candidate template ignored: substitution failure [with yT =
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, ArgsT
= <std::vector<double, stan::math::arena_allocator<double> >>]
constexpr auto rhs(double t, const yT& y,
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:38: error:
no matching function for call to object of type 'const
std::decay_t<dz_dt_odefunctor__>' (aka 'const
lv_model_namespace::dz_dt_odefunctor__')
[&](auto&&... args) { return solver_->f_(t, y, msgs_, args...); },
^~~~~~~~~~~
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/prim/functor/apply.hpp:26:10: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, int,
double, std::vector<stan::math::var_value<double, void>,
std::allocator<stan::math::var_value<double, void> > > >::rhs(double,
const Eigen::Map<const Eigen::Matrix<double, -1, 1, 0, -1, 1>, 0,
Eigen::Stride<0, 0> > &, const std::tuple<vector<var_value<double, void>,
arena_allocator<var_value<double, void> > > > &)::(anonymous
class)::operator()<const std::vector<stan::math::var_value<double, void>,
stan::math::arena_allocator<stan::math::var_value<double, void> > > &>'
requested here
return f(std::forward<decltype(std::get<I>(t))>(std::get<I>(t))...);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/prim/functor/apply.hpp:44:20: note:
in instantiation of function template specialization
'stan::math::internal::apply_impl<(lambda at
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:9),
const std::tuple<std::vector<stan::math::var_value<double, void>,
stan::math::arena_allocator<stan::math::var_value<double, void> > > > &,
0>' requested here
return internal::apply_impl(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:571:12: note:
in instantiation of function template specialization
'stan::math::apply<(lambda at
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:572:9),
const std::tuple<std::vector<stan::math::var_value<double, void>,
stan::math::arena_allocator<stan::math::var_value<double, void> > > > &>'
requested here
return apply(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:665:11: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, int,
double, std::vector<stan::math::var_value<double, void>,
std::allocator<stan::math::var_value<double, void> > >
>::rhs<Eigen::Map<const Eigen::Matrix<double, -1, 1, 0, -1, 1>, 0,
Eigen::Stride<0, 0> >, std::vector<stan::math::var_value<double, void>,
stan::math::arena_allocator<stan::math::var_value<double, void> > > >'
requested here
= rhs(t, y_vec, local_args_tuple_);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:684:37: note:
in instantiation of member function
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, int,
double, std::vector<stan::math::var_value<double, void>,
std::allocator<stan::math::var_value<double, void> > > >::quad_rhs_adj'
requested here
return cast_to_self(user_data)->quad_rhs_adj(t, y, yB, qBdot);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/cvodes_integrator_adjoint.hpp:193:3: note:
in instantiation of member function
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, int,
double, std::vector<stan::math::var_value<double, void>,
std::allocator<stan::math::var_value<double, void> > > >::chain' requested
here
cvodes_integrator_adjoint_vari(
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/lib/stan_math/stan/math/rev/functor/ode_adjoint.hpp:85:25: note:
in instantiation of function template specialization
'stan::math::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, int,
double, std::vector<stan::math::var_value<double, void>,
std::allocator<stan::math::var_value<double, void> > >
>::cvodes_integrator_adjoint_vari<lv_model_namespace::dz_dt_odefunctor__,
nullptr>' requested here
auto integrator = new integrator_vari(
^
lv.hpp:669:14: note: in instantiation of function template specialization
'lv_model_namespace::lv_model::log_prob_impl<false, false,
Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>,
Eigen::Matrix<int, -1, 1, 0, -1, 1>, nullptr, nullptr>' requested here
return log_prob_impl<propto__, jacobian__>(params_r, params_i, pstream);
^
/home/bbales2/tmp/cmdstan-ode-adjoint-v3/stan/src/stan/model/model_base_crtp.hpp:95:50: note:
in instantiation of function template specialization
'lv_model_namespace::lv_model::log_prob<false, false,
stan::math::var_value<double, void> >' requested here
return static_cast<const M*>(this)->template log_prob<false, false>(theta,
^
lv.hpp:152:3: note: in instantiation of member function
'stan::model::model_base_crtp<lv_model_namespace::lv_model>::log_prob'
requested here
~lv_model() { }
^
lv.hpp:135:1: note: candidate template ignored: could not match 'allocator'
against 'arena_allocator'
operator()(const T0__& t, const T1__& z, std::ostream* pstream__,
^
12 errors generated.
make/program:53: recipe for target 'lv' failed
make: *** [lv] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment