pub type OdeCallbackFn<T> = Option<unsafe extern "C" fn(x: *const TensorView<'_>, p: *const TensorView<'_>, t: T, y: *mut TensorViewMut<'_>, user_data: *mut c_void) -> i32>;Expand description
y = F(x, p, t): used for rhs, root, out and reset.
Aliased Type§
pub enum OdeCallbackFn<T> {
None,
Some(unsafe extern "C" fn(*const TensorView<'_>, *const TensorView<'_>, T, *mut TensorViewMut<'_>, *mut c_void) -> i32),
}Variants§
None
No value.
Some(unsafe extern "C" fn(*const TensorView<'_>, *const TensorView<'_>, T, *mut TensorViewMut<'_>, *mut c_void) -> i32)
Some value of type T.