Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::math::cvodes_integrator_adjoint_vari< F, T_y0, T_t0, T_ts, T_Args >::cvodes_solver Struct Reference

Detailed Description

template<typename F, typename T_y0, typename T_t0, typename T_ts, typename... T_Args>
struct stan::math::cvodes_integrator_adjoint_vari< F, T_y0, T_t0, T_ts, T_Args >::cvodes_solver

Since the CVODES solver manages memory with malloc calls, these resources must be freed using a destructor call (which is not being called for the vari class).

Definition at line 74 of file cvodes_integrator_adjoint.hpp.

+ Inheritance diagram for stan::math::cvodes_integrator_adjoint_vari< F, T_y0, T_t0, T_ts, T_Args >::cvodes_solver:

Public Member Functions

template<typename FF >
 cvodes_solver (const char *function_name, FF &&f, size_t N, const T_y0 &y0, const T_t0 &t0, const std::vector< T_ts > &ts, const Eigen::VectorXd &absolute_tolerance_forward, const Eigen::VectorXd &absolute_tolerance_backward, size_t num_args_vars, int solver_forward, const T_Args &... args)
 
virtual ~cvodes_solver ()
 

Public Attributes

sundials::Context sundials_context_
 
const std::string function_name_str_
 
const std::decay_t< F > f_
 
const size_t N_
 
std::vector< Eigen::VectorXd > y_
 
std::vector< T_ts > ts_
 
Eigen::Matrix< T_y0_t0, Eigen::Dynamic, 1 > y0_
 
Eigen::VectorXd absolute_tolerance_forward_
 
Eigen::VectorXd absolute_tolerance_backward_
 
Eigen::VectorXd state_forward_
 
Eigen::VectorXd state_backward_
 
Eigen::VectorXd quad_
 
T_t0 t0_
 
N_Vector nv_state_forward_
 
N_Vector nv_state_backward_
 
N_Vector nv_quad_
 
N_Vector nv_absolute_tolerance_forward_
 
N_Vector nv_absolute_tolerance_backward_
 
SUNMatrix A_forward_
 
SUNMatrix A_backward_
 
SUNLinearSolver LS_forward_
 
SUNLinearSolver LS_backward_
 
void * cvodes_mem_
 
std::tuple< T_Args... > local_args_tuple_
 
const std::tuple< promote_scalar_t< partials_type_t< scalar_type_t< T_Args > >, T_Args >... > value_of_args_tuple_
 

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