Skip to main content

OdeCallbackInitFn

Type Alias OdeCallbackInitFn 

Source
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§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*const TensorView<'_>, T, *mut TensorViewMut<'_>, *mut c_void) -> i32)

Some value of type T.