Expand description
Solution wrapper for the dynamic dispatch API.
This module defines SolutionWrapper, a thread-safe handle around a type-erased ODE solution. Returned by all solve methods on OdeWrapper, it provides methods to extract the solution data:
- SolutionWrapper::get_ys โ the state values at each time point (returns Tensor).
- SolutionWrapper::get_ts โ the time points (returns Tensor).
- SolutionWrapper::get_sens โ the sensitivity matrices (returns
Vec<Tensor>).
SolutionWrapper implements Serialize, serializing as {dtype, ts, ys, sensitivities}, with
the values in the scalar type of the solver (dtype).
Structsยง
- Solution
Wrapper - A handle to the solution of a solve. Clones share the same solution.