Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ ode_store_sensitivities() [2/2]

template<typename F , typename T_y0_t0 , typename T_t0 , typename T_t , typename... Args, require_any_autodiff_t< T_y0_t0, T_t0, T_t, scalar_type_t< Args >... > * = nullptr>
Eigen::Matrix< var, Eigen::Dynamic, 1 > stan::math::ode_store_sensitivities ( const F &  f,
const std::vector< double > &  coupled_state,
const Eigen::Matrix< T_y0_t0, Eigen::Dynamic, 1 > &  y0,
const T_t0 &  t0,
const T_t &  t,
std::ostream *  msgs,
const Args &...  args 
)

Build output vars for a state of the ODE solve, storing the sensitivities precomputed using the forward sensitivity problem in precomputed varis.

Template Parameters
FType of ODE right hand side
T_y0_t0Type of initial state
T_t0Type of initial time
T_tsType of output times
T_ArgsTypes of pass-through parameters
Parameters
fRight hand side of the ODE
coupled_stateCurrent state of the coupled_ode_system
y0Initial state
t0Initial time
tTimes at which to solve the ODE at
[in,out]msgsthe print stream for warning messages
argsExtra arguments passed unmodified through to ODE right hand side
Returns
ODE state with scalar type var

Definition at line 36 of file ode_store_sensitivities.hpp.