Skip to main content

Module solution_wrapper_c

Module solution_wrapper_c 

Source
Expand description

C FFI functions for extracting data from and freeing SolutionWrapper objects.

Provides extern "C" functions to retrieve the time points, state values, and sensitivities from a SolutionWrapper, and to free the wrapper when no longer needed.

Functions§

diffsol_solution_wrapper_free
Free a solution wrapper previously returned by this library.
diffsol_solution_wrapper_get_sens
Return the recorded forward sensitivities as a list of host arrays.
diffsol_solution_wrapper_get_ts
Return the recorded solution times as a host array.
diffsol_solution_wrapper_get_ys
Return the recorded solution values as a host array.