Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::math::internal::integrate_ode_std_vector_interface_adapter< F > Struct Template Reference

Detailed Description

template<typename F>
struct stan::math::internal::integrate_ode_std_vector_interface_adapter< F >

Wrap a functor designed for use with integrate_ode_bdf, integrate_ode_rk45, and integrate_ode_adams to use with the new ode_bdf/ode_rk45 interfaces.

The old functors took the ODE state as a std::vector. The new ones take state as an Eigen::Matrix. The adapter converts to and from these forms so that the old ODE interfaces can work.

Definition at line 23 of file integrate_ode_std_vector_interface_adapter.hpp.

#include <integrate_ode_std_vector_interface_adapter.hpp>

Public Member Functions

 integrate_ode_std_vector_interface_adapter (const F &f)
 
template<typename T0 , typename T1 , typename T2 >
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
 

Public Attributes

const F f_
 

The documentation for this struct was generated from the following file: