IDAS DAE integrator.
More...
#include <idas_integrator.hpp>
|
| idas_integrator (const double rtol, const double atol, const int64_t max_num_steps=IDAS_MAX_STEPS) |
| constructor More...
|
|
template<typename Dae > |
Dae::return_type | integrate (Dae &dae, double t0, const std::vector< double > &ts) |
| Return the solutions for the specified DAE given the specified initial state, initial times, times of desired solution, and parameters and data, writing error and warning messages to the specified stream contained in the DAE system. More...
|
|
IDAS DAE integrator.
Definition at line 26 of file idas_integrator.hpp.
◆ idas_integrator()
stan::math::idas_integrator::idas_integrator |
( |
const double |
rtol, |
|
|
const double |
atol, |
|
|
const int64_t |
max_num_steps = IDAS_MAX_STEPS |
|
) |
| |
|
inline |
constructor
- Parameters
-
[in] | rtol | relative tolerance |
[in] | atol | absolute tolerance |
[in] | max_num_steps | max nb. of times steps |
Definition at line 81 of file idas_integrator.hpp.
◆ integrate()
template<typename Dae >
Dae::return_type stan::math::idas_integrator::integrate |
( |
Dae & |
dae, |
|
|
double |
t0, |
|
|
const std::vector< double > & |
ts |
|
) |
| |
|
inline |
Return the solutions for the specified DAE given the specified initial state, initial times, times of desired solution, and parameters and data, writing error and warning messages to the specified stream contained in the DAE system.
- Template Parameters
-
- Parameters
-
[in] | dae | DAE system |
[in] | t0 | initial time. |
[in] | ts | times of the desired solutions, in strictly increasing order, all greater than the initial time. |
- Returns
- a vector of states, each state being a vector of the same size as the state variable, corresponding to a time in ts.
Definition at line 114 of file idas_integrator.hpp.
◆ IDAS_MAX_STEPS
constexpr int stan::math::idas_integrator::IDAS_MAX_STEPS = 500 |
|
static |
The documentation for this class was generated from the following file: