1 #ifndef STAN_MATH_PRIM_ARR_FUNCTOR_COUPLED_ODE_OBSERVER_HPP
2 #define STAN_MATH_PRIM_ARR_FUNCTOR_COUPLED_ODE_OBSERVER_HPP
26 : y_coupled_(y_coupled), n_(0) {
35 void operator()(
const std::vector<double>& coupled_state,
37 y_coupled_[
n_] = coupled_state;
std::vector< std::vector< double > > & y_coupled_
Observer for the coupled states.
void operator()(const std::vector< double > &coupled_state, const double t)
Callback function for Boost's ODE solver to record values.
coupled_ode_observer(std::vector< std::vector< double > > &y_coupled)
Construct a coupled ODE observer from the specified coupled vector.