Stan Math Library
4.8.1
Automatic Differentiation
|
The coupled_ode_system_impl
for arithmetic arguments reduces to the regular ode system (there are no sensitivities)
F | base ode system functor. Must provide template<typename T_y, typename... T_args> operator()(double t, const Eigen::Matrix<T_y, Eigen::Dynamic, 1>& y,
std::ostream* msgs, const T_args&... args) |
Definition at line 28 of file coupled_ode_system.hpp.
#include <coupled_ode_system.hpp>
Public Member Functions | |
coupled_ode_system_impl (const F &f, const Eigen::VectorXd &y0, std::ostream *msgs, const Args &... args) | |
Construct a coupled ode system from the base system function, initial state of the base system, parameters, and a stream for messages. | |
void | operator() (const std::vector< double > &z, std::vector< double > &dz_dt, double t) const |
Evaluate the right hand side of the coupled system at state z and time t, and store the sensitivities in dz_dt. | |
size_t | size () const |
Returns the size of the coupled system. | |
std::vector< double > | initial_state () const |
Returns the initial state of the coupled system. | |
Public Attributes | |
const F & | f_ |
const Eigen::VectorXd & | y0_ |
std::tuple< const Args &... > | args_tuple_ |
const size_t | N_ |
std::ostream * | msgs_ |