Automatic Differentiation
 
Loading...
Searching...
No Matches
integrate_ode_std_vector_interface_adapter.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_FUNCTOR_INTEGRATE_ODE_STD_VECTOR_INTERFACE_ADAPTER_HPP
2#define STAN_MATH_PRIM_FUNCTOR_INTEGRATE_ODE_STD_VECTOR_INTERFACE_ADAPTER_HPP
3
6#include <ostream>
7#include <vector>
8
9namespace stan {
10namespace math {
11
12namespace internal {
13
22template <typename F>
24 const F f_;
25
27
28 template <typename T0, typename T1, typename T2>
29 auto operator()(const T0& t, const Eigen::Matrix<T1, Eigen::Dynamic, 1>& y,
30 std::ostream* msgs, const std::vector<T2>& theta,
31 const std::vector<double>& x,
32 const std::vector<int>& x_int) const {
33 return to_vector(f_(t, to_array_1d(y), theta, x, x_int, msgs));
34 }
35};
36
37} // namespace internal
38
39} // namespace math
40} // namespace stan
41
42#endif
auto to_vector(T_x &&x)
Returns input matrix reshaped into a vector.
Definition to_vector.hpp:21
auto to_array_1d(T_x &&x)
Returns input matrix reshaped into a vector.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
auto operator()(const T0 &t, const Eigen::Matrix< T1, Eigen::Dynamic, 1 > &y, std::ostream *msgs, const std::vector< T2 > &theta, const std::vector< double > &x, const std::vector< int > &x_int) const
Wrap a functor designed for use with integrate_ode_bdf, integrate_ode_rk45, and integrate_ode_adams t...