pub type OdeCallbackInitFn<T> = Option<unsafe extern "C" fn(p: *const TensorView<'_>, t: T, y: *mut TensorViewMut<'_>, user_data: *mut c_void) -> i32>;Expand description
y = y0(p, t): the initial state.
Aliased Type§
pub enum OdeCallbackInitFn<T> {
None,
Some(unsafe extern "C" fn(*const TensorView<'_>, T, *mut TensorViewMut<'_>, *mut c_void) -> i32),
}Variants§
None
No value.
Some(unsafe extern "C" fn(*const TensorView<'_>, T, *mut TensorViewMut<'_>, *mut c_void) -> i32)
Some value of type T.